forked from OSchip/llvm-project
[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:
parent
7bc7501ac1
commit
62b4a69969
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue