Skip to content

feat(parser): recover missing tokens without consuming input - #45

Merged
R-unic merged 4 commits into
rbx-loom:masterfrom
jackprogramsjp:parser-error-recovery
Jul 22, 2026
Merged

feat(parser): recover missing tokens without consuming input#45
R-unic merged 4 commits into
rbx-loom:masterfrom
jackprogramsjp:parser-error-recovery

Conversation

@jackprogramsjp

@jackprogramsjp jackprogramsjp commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • For the Expect function, append/insert a synthetic zero width token in the situation that the expected kind is missing, rather than just immediately advancing to the next real token
  • Allow for incomplete editor-like input (e.g. missing ) / ] before the next let)
  • Add parser tests which will cover on missing parenthesis recovery, EOF insertion, and missing bracket recovery

Test plan

  • dotnet test all tests pass green

@jackprogramsjp
jackprogramsjp marked this pull request as ready for review July 22, 2026 05:45
@R-unic
R-unic merged commit 664ccdb into rbx-loom:master Jul 22, 2026
1 of 2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Loom Release 1.0.0 Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants