diff options
| author | GrayJack <gr41.j4ck@gmail.com> | 2020-07-20 23:00:13 -0300 |
|---|---|---|
| committer | GrayJack <gr41.j4ck@gmail.com> | 2020-07-20 23:00:13 -0300 |
| commit | 462e0158dae29cc0c55e699dd0e83c36a60ef5b9 (patch) | |
| tree | 18f70cf29ff91f2856795d77944237d15b75efb4 | |
| parent | a662228de41a8b35d61b2bd312d30d34623e2232 (diff) | |
| download | rust-462e0158dae29cc0c55e699dd0e83c36a60ef5b9.tar.gz rust-462e0158dae29cc0c55e699dd0e83c36a60ef5b9.zip | |
@ as operator
| -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 f088487fa73..0088077cc10 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs @@ -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() } |
