aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorGrayJack <[email protected]>2020-07-21 03:00:13 +0100
committerGrayJack <[email protected]>2020-07-21 03:00:13 +0100
commit462e0158dae29cc0c55e699dd0e83c36a60ef5b9 (patch)
tree18f70cf29ff91f2856795d77944237d15b75efb4 /crates/ra_ide
parenta662228de41a8b35d61b2bd312d30d34623e2232 (diff)
@ as operator
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs5
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 }