Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Fix wrong col pos in StringLexer exception #316

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

sstok
Copy link
Member

@sstok sstok commented Sep 2, 2024

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets
License MIT

The error message would inform the character position in relation to the whole input, but not the col relative to the line the error was encountered.

And addition this also fixes a bug where the snapshot of char, lineno, and cursor postion weren't reset before parsing.

@sstok sstok force-pushed the bug/string-input-col-position branch from cb11dc4 to 4a57601 Compare September 2, 2024 19:36
@sstok sstok merged commit 69212a2 into rollerworks:main Sep 2, 2024
5 of 6 checks passed
@sstok sstok deleted the bug/string-input-col-position branch September 2, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant