Open Carreau opened 1 year ago
Hi, sorry for the late reply. This is something I have experience myself while editing files in Neovim. Probably something to do about the parser using (and abusing) an external scanner.
I'll probably need to check if this is a bug on tree-sitter or if there is a better way to communicate to tree-sitter about what nodes should be re-evaluated.
No need to apologize for the delay tree-sitter-rst have been great to use !
A way to replicate this using the tree-sitter comand is
npm run parse -- --edit '3,0 1' --edit '3,0 0 ' test.rst
list:
- item2
- item2
On https://stsewd.dev/tree-sitter-rst/
Parses as
But if you edit the first space of the line in front of
item2
and add it again, it becomeshttps://github.com/stsewd/tree-sitter-rst/assets/335567/2e0ee656-4354-43f7-b71b-f62b6de062ee
I'll try to have a reproducer via Python API another time. I don't know if it's tree-sitter-rst of tree-sitter bug.