You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue seems to be with the error handling in scanner.h. The parser doesn't get stuck, when not returning DEDENT/PREPROC_END tokens in the error_recovery case.
Describe the bug
Hi,
thank you for developing this tree-sitter grammar 🙏🏻 👍🏻 . It works great, except for one annoying case.
To Reproduce
The parser runs into an endless loop for the following code (note the unmatched closing
)
afterint
:Debug logs return the following:
The parser recovers to state 6095, runs into an error, recovers to state 6095, runs into an error ...
Expected behavior
The parser does not run into an endless loop.
** Environment (please complete the following information):**
OS: Linux
Grammar version: Commit ad824de
The text was updated successfully, but these errors were encountered: