... in semantic highlighting.
These specifiers cannot be identified by simple lexing (since e.g.
variables with these names can legally be declared), which means they
should be semantic tokens.
Details
Details
- Reviewers
sammccall - Commits
- rG699a59aa5865: [clangd] Mark "override" and "final" as modifiers
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with optional mechanical replacement of Keyword with Modifier.
clang-tools-extra/clangd/SemanticHighlighting.h | ||
---|---|---|
52 | LSP provides both keyword and modifier, which obviously overlap. | |
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp | ||
868 | can you add something like int override, final; to check that these are *not* highlighted? | |
872 | this comment should not be inside the string literal |
LSP provides both keyword and modifier, which obviously overlap.
I think modifier is more specific and applies here, so would lean towards that. WDYT?