Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

fix: rewind generates incorrect errors (#843)#844

Closed
Hedgehogo wants to merge 1 commit into
zesterer:mainfrom
Hedgehogo:fix_rewind_error
Closed

fix: rewind generates incorrect errors (#843)#844
Hedgehogo wants to merge 1 commit into
zesterer:mainfrom
Hedgehogo:fix_rewind_error

Conversation

@Hedgehogo

@Hedgehogo Hedgehogo commented Jul 5, 2025

Copy link
Copy Markdown
Collaborator

This is a temporary fix that fixes the problem, but loses some of the error information (Which generally does not violate any chumsky principles, it does not guarantee the completeness of errors).

The best solution would be to keep two Cursors inside Location, one referring to the current location, as usual, and the second to the last location outside of rewind. This also requires entering a separate marker where this location was. However, this is a major change that requires further discussion.

@Hedgehogo

Copy link
Copy Markdown
Collaborator Author

Accepted together with #859.

@Hedgehogo Hedgehogo closed this Aug 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant