When commenting out code blocks (say, in C++), almost all variable and function names with CamelCase or containing underscore are highlighted as bad words. Before using Tree-sitter, I was able to ignore such words using Vim's patterns. I've played around with queries in cpp/spell.scm, and could achieve only ignoring separate lines within comments that contain a specific pattern.
Is my understanding correct that with Tree-sitter it is impossible to ignore such words (without marking them as good), because the parser (at least in case of cpp) does not produce each word within comments as an individual node that could be matched against a pattern?
When commenting out code blocks (say, in C++), almost all variable and function names with CamelCase or containing underscore are highlighted as bad words. Before using Tree-sitter, I was able to ignore such words using Vim's patterns. I've played around with queries in
cpp/spell.scm
, and could achieve only ignoring separate lines within comments that contain a specific pattern.Is my understanding correct that with Tree-sitter it is impossible to ignore such words (without marking them as good), because the parser (at least in case of
cpp
) does not produce each word within comments as an individual node that could be matched against a pattern?