mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 01:18:53 +00:00
[clangd] semanticTokens: fields are 'property', not 'member'
This isn't obvious, but vscode maps member as 'entity.name.function.member', so it's really for member functions. Fixes https://github.com/clangd/vscode-clangd/issues/105
This commit is contained in:
parent
c964f30814
commit
de5b0b776f
@ -561,7 +561,8 @@ llvm::StringRef toSemanticTokenType(HighlightingKind Kind) {
|
||||
// FIXME: better function/member with static modifier?
|
||||
return "function";
|
||||
case HighlightingKind::Field:
|
||||
return "member";
|
||||
// Not "member": https://github.com/clangd/vscode-clangd/issues/105
|
||||
return "property";
|
||||
case HighlightingKind::Class:
|
||||
return "class";
|
||||
case HighlightingKind::Enum:
|
||||
|
Loading…
Reference in New Issue
Block a user