File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -710,10 +710,13 @@ contexts:
710
710
pop : true
711
711
712
712
impl-for :
713
- - match : ' (?=\s*(?:::|{{identifier}}|\$|<)+(<.*?>)?\s+for\s+)'
713
+ # `!?` here matches opt-out trait impls
714
+ - match : ' (?=\s*(?:::|!?{{identifier}}|\$|<)+(<.*?>)?\s+for\s+)'
714
715
set :
715
716
- meta_scope : meta.impl.rust
716
717
- include : comments
718
+ - match : ' !?(?=\s*{{identifier}})'
719
+ scope : keyword.operator.rust meta.impl.opt-out.rust
717
720
- match : \bfor\b
718
721
scope : keyword.other.rust
719
722
set : impl-identifier
Original file line number Diff line number Diff line change @@ -693,6 +693,10 @@ impl Point
693
693
}
694
694
}
695
695
696
+ impl !Send for Point { }
697
+ //^^^^^^^^^^^^^^^^^^^^^ meta.impl.rust
698
+ // ^ meta.impl.rust keyword.operator.rust meta.impl.opt-out.rust
699
+
696
700
pub fn pub_function ( ) -> bool
697
701
// <- storage.modifier
698
702
// ^^ storage.type.function
You can’t perform that action at this time.
0 commit comments