Hello everyone and thanks for all your work!
I'm trying to get a better understanding of treesit.el, and I've stumbled on a couple of things that make me think the manual is either outdated/faulty, or just not entirely clear and I'm missing something.
The latter is most likely, but I'd appreciate any help in figuring out what exactly is wrong in my approach/setup. I would be happy to contribute to the manual, if needed, to ensure it is clearer.
I've started out with simply trying to recreate the setup described in the manual, but I've run into some issues.
Here's what I've done so far:
- the queries seem to be working as expected: when I'm in a buffer visiting example.html, evaluating `(treesit-query-capture 'html css-query)` and `(treesit-query-capture 'html js-query)` return the expected nodes
- ISSUE: `treesit-update-ranges` doesn't seem to be working as expected: even if I call it multiple times, the parser for the whole buffer seems to still be 'html. `(treesit-language-at (point))` always returns 'html, even when I'm inside the nodes captured by the css-query or js-query.
I'm just including this as context.
Let me know if any of this is not clear.
Thanks in advance for all your help!
Best,
Andrew