. is an operator

closes #6498
This commit is contained in:
Aleksey Kladov 2020-11-09 18:06:54 +01:00
parent 2fd29d0470
commit 9634521abd
5 changed files with 30 additions and 28 deletions

View file

@ -557,7 +557,9 @@ fn highlight_element(
h
}
}
T![::] | T![->] | T![=>] | T![..] | T![=] | T![@] => HighlightTag::Operator.into(),
T![::] | T![->] | T![=>] | T![..] | T![=] | T![@] | T![.] => {
HighlightTag::Operator.into()
}
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
HighlightTag::Macro.into()
}