diff options
author | Aramis Razzaghipour <[email protected]> | 2021-05-28 00:25:32 +0100 |
---|---|---|
committer | Aramis Razzaghipour <[email protected]> | 2021-06-23 00:40:04 +0100 |
commit | 3e7472f76c70c3b0a31bb72f6f318c1aa1aba83d (patch) | |
tree | fc99fe5bc5ff7d6826303d166cb911b63125f33d /crates/rust-analyzer/src/to_proto.rs | |
parent | 3762cb4535dce9eaf7c3dbd4aa9c33bf6dd30c87 (diff) |
Add `public` semantic token modifier for public items
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 310d8c6d2..f9497f76f 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -505,6 +505,7 @@ fn semantic_token_type_and_modifiers( | |||
505 | HlMod::Consuming => semantic_tokens::CONSUMING, | 505 | HlMod::Consuming => semantic_tokens::CONSUMING, |
506 | HlMod::Async => semantic_tokens::ASYNC, | 506 | HlMod::Async => semantic_tokens::ASYNC, |
507 | HlMod::Library => semantic_tokens::LIBRARY, | 507 | HlMod::Library => semantic_tokens::LIBRARY, |
508 | HlMod::Public => semantic_tokens::PUBLIC, | ||
508 | HlMod::Unsafe => semantic_tokens::UNSAFE, | 509 | HlMod::Unsafe => semantic_tokens::UNSAFE, |
509 | HlMod::Callable => semantic_tokens::CALLABLE, | 510 | HlMod::Callable => semantic_tokens::CALLABLE, |
510 | HlMod::Static => lsp_types::SemanticTokenModifier::STATIC, | 511 | HlMod::Static => lsp_types::SemanticTokenModifier::STATIC, |