ccls
ccls copied to clipboard
Semantic highlighting: Constructors Treated As Normal Functions Inside Class Body
Observed behavior
The language server's semantic tokenization won't assign the @constructor token to constructors unless they are outside the class' body.


Expected behavior
Correct semantic tokenization of C++ constructors.
Steps to reproduce
- Write a class in C++
- Write the class' constructor.
- Use the
TSHighlightCapturesUnderCursortool to check the syntax highlight groups assigned to the token.
System information
- ccls version (
git describe --tags --long): 0.20220729-1 - clang version: 14.0.6-3
- OS: EndeavourOS Linux x86_64
- Editor: Neovim
- Language client (and version): Neovim's built-in LSP client.
- ccls does not support LSP semantic token.
- The highlight provided by treesitter, not by ccls.