kiennq / treesit-langs

Language bundle for Emacs's tree-sitter package
MIT License
15 stars 5 forks source link

Error on python file #2

Closed dvzubarev closed 6 months ago

dvzubarev commented 11 months ago

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.

Emacs 29.1

kiennq commented 6 months ago

It's from the previous emacs module tree-sitter queries. I updated this to use the nvim-tree-sitter rules at 21f3a8c