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
When I use the command tree-sitter highlight test.sql with this grammar, I get the following error:
Error in query file "queries/highlights.scm"
Caused by:
Query error at 151:4. Invalid node type keyword_min
(It works with tree-sitter 0.23.2, but it is broken in 0.24 or newer)
I believe it is caused by a new feature where tree-sitter generate removes unused rules. Since keyword_max is not used in the grammar, it is removed, and the highlight query fails because it uses an unknown node type.
The text was updated successfully, but these errors were encountered:
When I use the command
tree-sitter highlight test.sql
with this grammar, I get the following error:(It works with tree-sitter 0.23.2, but it is broken in 0.24 or newer)
I believe it is caused by a new feature where
tree-sitter generate
removes unused rules. Sincekeyword_max
is not used in the grammar, it is removed, and the highlight query fails because it uses an unknown node type.The text was updated successfully, but these errors were encountered: