Skip to content

Conversation

@jg-rp
Copy link
Owner

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

This PR fixes "unbalanced parentheses" errors for queries that do have balanced brackets. See #13.

We now keep track of all parentheses and square brackets, not just parentheses from function calls.

This change means we now report the index of the opening bracket in error messages, if it does not have a matching closing bracket. We used to report the end index, usually the "end of input" index.

@jg-rp jg-rp marked this pull request as ready for review March 17, 2025 15:43
@jg-rp jg-rp merged commit d56573e into main Mar 17, 2025
40 checks passed
@jg-rp jg-rp deleted the fix-13 branch March 17, 2025 15:56
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