File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,9 @@ impl<'a> Classifier<'a> {
189
189
// leading identifier.
190
190
TokenKind :: Bang if self . in_macro => {
191
191
self . in_macro = false ;
192
- Class :: Macro
192
+ sink ( Highlight :: Token { text, class : None } ) ;
193
+ sink ( Highlight :: ExitSpan ) ;
194
+ return ;
193
195
}
194
196
195
197
// Assume that '&' or '*' is the reference or dereference operator
@@ -298,7 +300,9 @@ impl<'a> Classifier<'a> {
298
300
} ,
299
301
TokenKind :: Ident | TokenKind :: RawIdent if lookahead == Some ( TokenKind :: Bang ) => {
300
302
self . in_macro = true ;
301
- Class :: Macro
303
+ sink ( Highlight :: EnterSpan { class : Class :: Macro } ) ;
304
+ sink ( Highlight :: Token { text, class : None } ) ;
305
+ return ;
302
306
}
303
307
TokenKind :: Ident => match text {
304
308
"ref" | "mut" => Class :: RefKeyWord ,
You can’t perform that action at this time.
0 commit comments