[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
This commit is contained in:
Nathan James 2020-12-11 14:46:12 +00:00
parent 7bc7501ac1
commit 62b4a69969
No known key found for this signature in database
GPG Key ID: CC007AFCDA90AA5F
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ llvm::StringRef toSemanticTokenType(HighlightingKind Kind) {
case HighlightingKind::Enum: case HighlightingKind::Enum:
return "enum"; return "enum";
case HighlightingKind::EnumConstant: case HighlightingKind::EnumConstant:
return "enumConstant"; // nonstandard return "enumMember";
case HighlightingKind::Typedef: case HighlightingKind::Typedef:
return "type"; return "type";
case HighlightingKind::DependentType: case HighlightingKind::DependentType: