mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add public
semantic token modifier for public items
This commit is contained in:
parent
3762cb4535
commit
3e7472f76c
9 changed files with 67 additions and 35 deletions
|
@ -93,6 +93,7 @@ define_semantic_token_modifiers![
|
|||
(CONSUMING, "consuming"),
|
||||
(ASYNC, "async"),
|
||||
(LIBRARY, "library"),
|
||||
(PUBLIC, "public"),
|
||||
(UNSAFE, "unsafe"),
|
||||
(ATTRIBUTE_MODIFIER, "attribute"),
|
||||
(TRAIT_MODIFIER, "trait"),
|
||||
|
|
|
@ -505,6 +505,7 @@ fn semantic_token_type_and_modifiers(
|
|||
HlMod::Consuming => semantic_tokens::CONSUMING,
|
||||
HlMod::Async => semantic_tokens::ASYNC,
|
||||
HlMod::Library => semantic_tokens::LIBRARY,
|
||||
HlMod::Public => semantic_tokens::PUBLIC,
|
||||
HlMod::Unsafe => semantic_tokens::UNSAFE,
|
||||
HlMod::Callable => semantic_tokens::CALLABLE,
|
||||
HlMod::Static => lsp_types::SemanticTokenModifier::STATIC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue