aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rust-analyzer')
-rw-r--r--crates/rust-analyzer/src/semantic_tokens.rs5
-rw-r--r--crates/rust-analyzer/src/to_proto.rs1
2 files changed, 4 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs
index 6f43667a3..30f25250f 100644
--- a/crates/rust-analyzer/src/semantic_tokens.rs
+++ b/crates/rust-analyzer/src/semantic_tokens.rs
@@ -39,13 +39,14 @@ define_semantic_token_types![
39 (BOOLEAN, "boolean"), 39 (BOOLEAN, "boolean"),
40 (BUILTIN_TYPE, "builtinType"), 40 (BUILTIN_TYPE, "builtinType"),
41 (ENUM_MEMBER, "enumMember"), 41 (ENUM_MEMBER, "enumMember"),
42 (ESCAPE_SEQUENCE, "escapeSequence"),
43 (FORMAT_SPECIFIER, "formatSpecifier"),
42 (LIFETIME, "lifetime"), 44 (LIFETIME, "lifetime"),
45 (PUNCTUATION, "punctuation"),
43 (SELF_KEYWORD, "selfKeyword"), 46 (SELF_KEYWORD, "selfKeyword"),
44 (TYPE_ALIAS, "typeAlias"), 47 (TYPE_ALIAS, "typeAlias"),
45 (UNION, "union"), 48 (UNION, "union"),
46 (UNRESOLVED_REFERENCE, "unresolvedReference"), 49 (UNRESOLVED_REFERENCE, "unresolvedReference"),
47 (FORMAT_SPECIFIER, "formatSpecifier"),
48 (ESCAPE_SEQUENCE, "escapeSequence"),
49]; 50];
50 51
51macro_rules! define_semantic_token_modifiers { 52macro_rules! define_semantic_token_modifiers {
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs
index dee5d7859..efc452347 100644
--- a/crates/rust-analyzer/src/to_proto.rs
+++ b/crates/rust-analyzer/src/to_proto.rs
@@ -323,6 +323,7 @@ fn semantic_token_type_and_modifiers(
323 HighlightTag::UnresolvedReference => semantic_tokens::UNRESOLVED_REFERENCE, 323 HighlightTag::UnresolvedReference => semantic_tokens::UNRESOLVED_REFERENCE,
324 HighlightTag::FormatSpecifier => semantic_tokens::FORMAT_SPECIFIER, 324 HighlightTag::FormatSpecifier => semantic_tokens::FORMAT_SPECIFIER,
325 HighlightTag::Operator => lsp_types::SemanticTokenType::OPERATOR, 325 HighlightTag::Operator => lsp_types::SemanticTokenType::OPERATOR,
326 HighlightTag::Punctuation => semantic_tokens::PUNCTUATION,
326 HighlightTag::EscapeSequence => semantic_tokens::ESCAPE_SEQUENCE, 327 HighlightTag::EscapeSequence => semantic_tokens::ESCAPE_SEQUENCE,
327 }; 328 };
328 329