Add semantic highlight to QUESTION token
Made it an operator with controlFlow modifier.
This commit is contained in:
@@ -391,6 +391,7 @@ fn highlight_element(
|
||||
INT_NUMBER | FLOAT_NUMBER => HighlightTag::NumericLiteral.into(),
|
||||
BYTE => HighlightTag::ByteLiteral.into(),
|
||||
CHAR => HighlightTag::CharLiteral.into(),
|
||||
QUESTION => Highlight::new(HighlightTag::Operator) | HighlightModifier::ControlFlow,
|
||||
LIFETIME => {
|
||||
let h = Highlight::new(HighlightTag::Lifetime);
|
||||
match element.parent().map(|it| it.kind()) {
|
||||
|
||||
Reference in New Issue
Block a user