diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index f088487fa..0088077cc 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -540,8 +540,9 @@ fn highlight_element( | |||
540 | } | 540 | } |
541 | } | 541 | } |
542 | p if p.is_punct() => match p { | 542 | p if p.is_punct() => match p { |
543 | T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] => HighlightTag::Operator.into(), | 543 | T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] | T![@] => { |
544 | T![@] => HighlightTag::Operator | HighlightModifier::ControlFlow, | 544 | HighlightTag::Operator.into() |
545 | } | ||
545 | T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { | 546 | T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { |
546 | HighlightTag::Macro.into() | 547 | HighlightTag::Macro.into() |
547 | } | 548 | } |