diff options
author | Aleksey Kladov <[email protected]> | 2020-07-11 13:50:00 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-11 13:51:41 +0100 |
commit | e1d6b7f7c48d82c3c03550bc702e64cd7d079c99 (patch) | |
tree | 5b39f39acd93780faa5809dda2b11cec106ad182 /crates/rust-analyzer | |
parent | 87ddcba05fe1a80e293565cd09a61c83adc6bc7d (diff) |
Use dedicated semantic highlight tag for parameters
closes #5106
Diffstat (limited to 'crates/rust-analyzer')
-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 f6dff1684..f6d2f4fc4 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -309,6 +309,7 @@ fn semantic_token_type_and_modifiers( | |||
309 | } | 309 | } |
310 | HighlightTag::EnumVariant => semantic_tokens::ENUM_MEMBER, | 310 | HighlightTag::EnumVariant => semantic_tokens::ENUM_MEMBER, |
311 | HighlightTag::Macro => lsp_types::SemanticTokenType::MACRO, | 311 | HighlightTag::Macro => lsp_types::SemanticTokenType::MACRO, |
312 | HighlightTag::ValueParam => lsp_types::SemanticTokenType::PARAMETER, | ||
312 | HighlightTag::Local => lsp_types::SemanticTokenType::VARIABLE, | 313 | HighlightTag::Local => lsp_types::SemanticTokenType::VARIABLE, |
313 | HighlightTag::TypeParam => lsp_types::SemanticTokenType::TYPE_PARAMETER, | 314 | HighlightTag::TypeParam => lsp_types::SemanticTokenType::TYPE_PARAMETER, |
314 | HighlightTag::Lifetime => semantic_tokens::LIFETIME, | 315 | HighlightTag::Lifetime => semantic_tokens::LIFETIME, |