Add static semantic token modifier for associated functions with no &self

This commit is contained in:
Anatol Liu
2020-11-04 20:08:46 -08:00
parent 678a29e938
commit 3baa526fb0
8 changed files with 110 additions and 2 deletions

View File

@@ -426,6 +426,7 @@ fn semantic_token_type_and_modifiers(
HighlightModifier::Consuming => semantic_tokens::CONSUMING,
HighlightModifier::Unsafe => semantic_tokens::UNSAFE,
HighlightModifier::Callable => semantic_tokens::CALLABLE,
HighlightModifier::Static => lsp_types::SemanticTokenModifier::STATIC,
};
mods |= modifier;
}