Skip to content

Improve error messages related to unbalanced brackets #15

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

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

jg-rp
Copy link
Owner

@jg-rp jg-rp commented Mar 18, 2025

This PR improves error messages related to unbalanced brackets.

Previously we were inspecting Lexer.bracket_stack before looking for error tokens, which give more accurate line and column numbers.

@jg-rp jg-rp merged commit 7a2bad6 into main Mar 18, 2025
40 checks passed
@jg-rp jg-rp deleted the improve-unbalanced-brackets branch March 18, 2025 13:15
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.

1 participant