You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: