Use METHOD semantic token type

This commit is contained in:
Laurențiu Nicola
2020-12-04 18:27:10 +02:00
parent 070ecef249
commit 72f013b3b9
8 changed files with 45 additions and 37 deletions

View File

@@ -381,6 +381,7 @@ fn semantic_token_type_and_modifiers(
HighlightTag::Function => lsp_types::SemanticTokenType::FUNCTION,
HighlightTag::Generic => semantic_tokens::GENERIC,
HighlightTag::Module => lsp_types::SemanticTokenType::NAMESPACE,
HighlightTag::Method => lsp_types::SemanticTokenType::METHOD,
HighlightTag::Constant => {
mods |= semantic_tokens::CONSTANT;
mods |= lsp_types::SemanticTokenModifier::STATIC;