File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -710,10 +710,13 @@ contexts:
710710 pop : true
711711
712712 impl-for :
713- - match : ' (?=\s*(?:::|{{identifier}}|\$|<)+(<.*?>)?\s+for\s+)'
713+ # `!?` here matches opt-out trait impls
714+ - match : ' (?=\s*(?:::|!?{{identifier}}|\$|<)+(<.*?>)?\s+for\s+)'
714715 set :
715716 - meta_scope : meta.impl.rust
716717 - include : comments
718+ - match : ' !?(?=\s*{{identifier}})'
719+ scope : keyword.operator.rust meta.impl.opt-out.rust
717720 - match : \bfor\b
718721 scope : keyword.other.rust
719722 set : impl-identifier
Original file line number Diff line number Diff line change @@ -675,6 +675,10 @@ impl Point
675675 }
676676}
677677
678+ impl !Send for Point { }
679+ //^^^^^^^^^^^^^^^^^^^^^ meta.impl.rust
680+ // ^ meta.impl.rust keyword.operator.rust meta.impl.opt-out.rust
681+
678682pub fn pub_function ( ) -> bool
679683// <- storage.modifier
680684// ^^ storage.type.function
You can’t perform that action at this time.
0 commit comments