Remove error recovery handling in scanner.h causing parser to get stuck | fix #134#135
Remove error recovery handling in scanner.h causing parser to get stuck | fix #134#135LhKipp wants to merge 2 commits intoionide:mainfrom
Conversation
e667579 to
2d77b97
Compare
|
Hi @LhKipp, Thank you for helping make the grammar more stable! It appears the recent update to tree-sitter broke the CI so I have reverted the update. |
2d77b97 to
6901712
Compare
Sure. The change set looks much better now :) |
|
Hi @LhKipp, I'm wondering if there would be another way to handle the looping in this case, where we could change the production rules instead? match x with
|would still be able to parse as a match statement even though it is not a syntactically correct match statement. |
|
Hi @Nsidorenco,
No worries. It didn't felt long to me :)
There maybe is. I am sorry to tell you, that I neither have the tree-sitter knowledge to know the solution, nor that I want to spend my time and energy on this problem (now). If you feel like this PR is a regression overall, feel free to close it or move it into draft. I won't be offended. For me this change made the grammar usable. I am using Neovim, which apparently runs the tree-sitter parsing on the main-loop (and not async), so if the grammar runs into an endless loop, so does the editor and feels "frozen". I understand other editors can behave differently and then it's not so much of an annoyance. |
No description provided.