Add self keyword semantic token type

This commit is contained in:
Laurențiu Nicola 2020-05-25 11:51:56 +03:00
parent 1527feb744
commit c2358365ad
6 changed files with 14 additions and 4 deletions

View file

@ -414,6 +414,7 @@ fn highlight_element(
T![for] if !is_child_of_impl(element) => h | HighlightModifier::ControlFlow,
T![unsafe] => h | HighlightModifier::Unsafe,
T![true] | T![false] => HighlightTag::BoolLiteral.into(),
T![self] => HighlightTag::SelfKeyword.into(),
_ => h,
}
}