Skip to content

Commit 62b4a69

Browse files
committed
[clangd] Use enumMember instead of enumConstant
We should be using enumMember as thats defined in LSP, enumConstant is non standard so clients aren't likely to support it Fixes https://github.com/clangd/clangd/issues/622n Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D93113
1 parent 7bc7501 commit 62b4a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/SemanticHighlighting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ llvm::StringRef toSemanticTokenType(HighlightingKind Kind) {
571571
case HighlightingKind::Enum:
572572
return "enum";
573573
case HighlightingKind::EnumConstant:
574-
return "enumConstant"; // nonstandard
574+
return "enumMember";
575575
case HighlightingKind::Typedef:
576576
return "type";
577577
case HighlightingKind::DependentType:

0 commit comments

Comments
 (0)