I was trying to enable highlighting using treesit-hl-toggle for python. It gave me an error: something about wrong query.
I tracked it down to this rule "\"" @string in queries/python/highlights.scm.
I can reproduce this error by running (treesit-query-validate 'python "\"\\\"\" @treesit-face-string") in ielm.
After deleting this rule everything works fine.
I'm not sure why this rule is there. There is no such rule in vanilla tree-sitter-python or in python-ts-mode
Also queries/python/highlights.scm already contains (string) @string rule.
I was trying to enable highlighting using
treesit-hl-toggle
for python. It gave me an error: something about wrong query. I tracked it down to this rule"\"" @string
inqueries/python/highlights.scm
. I can reproduce this error by running(treesit-query-validate 'python "\"\\\"\" @treesit-face-string")
in ielm.After deleting this rule everything works fine. I'm not sure why this rule is there. There is no such rule in vanilla tree-sitter-python or in python-ts-mode Also
queries/python/highlights.scm
already contains(string) @string
rule.Emacs 29.1