Color attribute functions
This commit is contained in:
@@ -67,6 +67,7 @@ define_semantic_token_modifiers![
|
||||
(CONTROL_FLOW, "controlFlow"),
|
||||
(MUTABLE, "mutable"),
|
||||
(UNSAFE, "unsafe"),
|
||||
(ATTRIBUTE_MODIFIER, "attribute"),
|
||||
];
|
||||
|
||||
#[derive(Default)]
|
||||
|
||||
@@ -296,6 +296,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,
|
||||
|
||||
Reference in New Issue
Block a user