mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
@ as operator
This commit is contained in:
parent
a662228de4
commit
462e0158da
1 changed files with 3 additions and 2 deletions
|
@ -540,8 +540,9 @@ fn highlight_element(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p if p.is_punct() => match p {
|
p if p.is_punct() => match p {
|
||||||
T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] => HighlightTag::Operator.into(),
|
T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] | T![@] => {
|
||||||
T![@] => HighlightTag::Operator | HighlightModifier::ControlFlow,
|
HighlightTag::Operator.into()
|
||||||
|
}
|
||||||
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
|
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
|
||||||
HighlightTag::Macro.into()
|
HighlightTag::Macro.into()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue