Merge pull request #4474 from georgewfraser/color_attrs

Color attribute functions
This commit is contained in:
Aleksey Kladov
2020-05-24 15:32:31 +02:00
committed by GitHub
7 changed files with 24 additions and 4 deletions

View File

@@ -307,6 +307,7 @@ fn semantic_token_type_and_modifiers(
for modifier in highlight.modifiers.iter() {
let modifier = match modifier {
HighlightModifier::Attribute => semantic_tokens::ATTRIBUTE_MODIFIER,
HighlightModifier::Definition => lsp_types::SemanticTokenModifier::DECLARATION,
HighlightModifier::ControlFlow => semantic_tokens::CONTROL_FLOW,
HighlightModifier::Mutable => semantic_tokens::MUTABLE,