@ as operator

This commit is contained in:
GrayJack 2020-07-20 23:00:13 -03:00
parent a662228de4
commit 462e0158da
No known key found for this signature in database
GPG key ID: 12C54E04AAB9931E

View 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()
}