Skip to content

Commit 7ad3f45

Browse files
committed
Switch to upstream ENUM_MEMBER
1 parent 6f1c2dc commit 7ad3f45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/rust-analyzer/src/semantic_tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ macro_rules! define_semantic_token_types {
2424
SemanticTokenType::CLASS,
2525
SemanticTokenType::INTERFACE,
2626
SemanticTokenType::ENUM,
27+
SemanticTokenType::ENUM_MEMBER,
2728
SemanticTokenType::TYPE_PARAMETER,
2829
SemanticTokenType::FUNCTION,
2930
SemanticTokenType::MEMBER,
@@ -40,7 +41,6 @@ define_semantic_token_types![
4041
(ATTRIBUTE, "attribute"),
4142
(BOOLEAN, "boolean"),
4243
(BUILTIN_TYPE, "builtinType"),
43-
(ENUM_MEMBER, "enumMember"),
4444
(ESCAPE_SEQUENCE, "escapeSequence"),
4545
(FORMAT_SPECIFIER, "formatSpecifier"),
4646
(GENERIC, "generic"),

crates/rust-analyzer/src/to_proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fn semantic_token_type_and_modifiers(
369369
mods |= lsp_types::SemanticTokenModifier::STATIC;
370370
lsp_types::SemanticTokenType::VARIABLE
371371
}
372-
HighlightTag::EnumVariant => semantic_tokens::ENUM_MEMBER,
372+
HighlightTag::EnumVariant => lsp_types::SemanticTokenType::ENUM_MEMBER,
373373
HighlightTag::Macro => lsp_types::SemanticTokenType::MACRO,
374374
HighlightTag::ValueParam => lsp_types::SemanticTokenType::PARAMETER,
375375
HighlightTag::Local => lsp_types::SemanticTokenType::VARIABLE,

0 commit comments

Comments
 (0)