Add highlighting of items from other crates

This commit is contained in:
Aramis Razzaghipour
2021-05-23 23:45:26 +10:00
parent 064ff633f6
commit 4fd5248749
6 changed files with 103 additions and 12 deletions

View File

@@ -504,6 +504,7 @@ fn semantic_token_type_and_modifiers(
HlMod::Mutable => semantic_tokens::MUTABLE,
HlMod::Consuming => semantic_tokens::CONSUMING,
HlMod::Async => semantic_tokens::ASYNC,
HlMod::Foreign => semantic_tokens::FOREIGN,
HlMod::Unsafe => semantic_tokens::UNSAFE,
HlMod::Callable => semantic_tokens::CALLABLE,
HlMod::Static => lsp_types::SemanticTokenModifier::STATIC,