Use lsp-types DECORATOR token type

This commit is contained in:
Lukas Wirth
2022-08-23 14:00:29 +02:00
parent 31fb917d8d
commit 2a26b054b7
4 changed files with 20 additions and 22 deletions

View File

@@ -558,7 +558,7 @@ fn semantic_token_type_and_modifiers(
let mut mods = semantic_tokens::ModifierSet::default();
let type_ = match highlight.tag {
HlTag::Symbol(symbol) => match symbol {
SymbolKind::Attribute => semantic_tokens::DECORATOR,
SymbolKind::Attribute => lsp_types::SemanticTokenType::DECORATOR,
SymbolKind::Derive => semantic_tokens::DERIVE,
SymbolKind::DeriveHelper => semantic_tokens::DERIVE_HELPER,
SymbolKind::Module => lsp_types::SemanticTokenType::NAMESPACE,