Skip to content

Commit 462e015

Browse files
committed
@ as operator
1 parent a662228 commit 462e015

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/ra_ide/src/syntax_highlighting.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,9 @@ fn highlight_element(
540540
}
541541
}
542542
p if p.is_punct() => match p {
543-
T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] => HighlightTag::Operator.into(),
544-
T![@] => HighlightTag::Operator | HighlightModifier::ControlFlow,
543+
T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] | T![@] => {
544+
HighlightTag::Operator.into()
545+
}
545546
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
546547
HighlightTag::Macro.into()
547548
}

0 commit comments

Comments
 (0)