diff options
author | hi-rustin <[email protected]> | 2021-05-14 03:36:12 +0100 |
---|---|---|
committer | hi-rustin <[email protected]> | 2021-05-14 03:47:00 +0100 |
commit | b98c119ba690afdcd21edb3b344834e42422df0a (patch) | |
tree | 5e62ad72b3d2fbaa952f42704a7415721b0acff5 /crates/rust-analyzer/src/to_proto.rs | |
parent | 9803a9a148e1c5850d2f649ffbc1bb3575cfa929 (diff) |
Apply async semantic token modifier to async/await keywords
Only async semantic token modifier
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 ecf6fd12f..8ce4aa242 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -496,6 +496,7 @@ fn semantic_token_type_and_modifiers( | |||
496 | HlMod::ControlFlow => semantic_tokens::CONTROL_FLOW, | 496 | HlMod::ControlFlow => semantic_tokens::CONTROL_FLOW, |
497 | HlMod::Mutable => semantic_tokens::MUTABLE, | 497 | HlMod::Mutable => semantic_tokens::MUTABLE, |
498 | HlMod::Consuming => semantic_tokens::CONSUMING, | 498 | HlMod::Consuming => semantic_tokens::CONSUMING, |
499 | HlMod::Async => semantic_tokens::ASYNC, | ||
499 | HlMod::Unsafe => semantic_tokens::UNSAFE, | 500 | HlMod::Unsafe => semantic_tokens::UNSAFE, |
500 | HlMod::Callable => semantic_tokens::CALLABLE, | 501 | HlMod::Callable => semantic_tokens::CALLABLE, |
501 | HlMod::Static => lsp_types::SemanticTokenModifier::STATIC, | 502 | HlMod::Static => lsp_types::SemanticTokenModifier::STATIC, |