diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-23 00:58:59 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-23 00:58:59 +0100 |
commit | 3381c2e4a8bcea2db3edd1741a7dd3fcdb15231b (patch) | |
tree | fc99fe5bc5ff7d6826303d166cb911b63125f33d /crates/rust-analyzer/src/to_proto.rs | |
parent | 3762cb4535dce9eaf7c3dbd4aa9c33bf6dd30c87 (diff) | |
parent | 3e7472f76c70c3b0a31bb72f6f318c1aa1aba83d (diff) |
Merge #9031
9031: Add `public` semantic token modifier for public items r=Veykril a=arzg
Closes #8943.
Co-authored-by: Aramis Razzaghipour <[email protected]>
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, |