Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Automatic reparsing fails when no highlights are present #41

Open
vhyrro opened this issue Jul 4, 2021 · 0 comments
Open

Automatic reparsing fails when no highlights are present #41

vhyrro opened this issue Jul 4, 2021 · 0 comments
Assignees

Comments

@vhyrro
Copy link

vhyrro commented Jul 4, 2021

Hi!

After attempting to write my own custom parser i was hit with a rather interesting problem - whenever viewing my syntax tree in TSPlayground, no matter how hard I tried, the tree would not update. The only way to reparse the buffer is to either re-enter neovim or execute :e to force reparsing. After asking around on the Zulip server the source of the problem seems to be highlights - my treesitter parser (can be found here just for reference) does not yet support highlights, and after adding some using :TSEditQuery highlights the automatic reparsing kicked in and started working. Is it possible to reparse on buffer change, rather than on a physical parser update? I believe this would avoid confusion for any new peeps developing parsers for treesitter and Neovim :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants