]> git.lizzy.rs Git - rust.git/commitdiff
@ as operator
authorGrayJack <gr41.j4ck@gmail.com>
Tue, 21 Jul 2020 02:00:13 +0000 (23:00 -0300)
committerGrayJack <gr41.j4ck@gmail.com>
Tue, 21 Jul 2020 02:00:13 +0000 (23:00 -0300)
crates/ra_ide/src/syntax_highlighting.rs

index f088487fa73f2da3d0f9b2846fd0e23bb32fec03..0088077cc10afac27442805fa5a0279fdf8050c8 100644 (file)
@@ -540,8 +540,9 @@ fn highlight_element(
             }
         }
         p if p.is_punct() => match p {
-            T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] => HighlightTag::Operator.into(),
-            T![@] => HighlightTag::Operator | HighlightModifier::ControlFlow,
+            T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] | T![@] => {
+                HighlightTag::Operator.into()
+            }
             T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
                 HighlightTag::Macro.into()
             }