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

Report mismatched parentheses before more specific errors #20764

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tau-dev
Copy link
Contributor

@tau-dev tau-dev commented Jul 23, 2024

Addresses #18597 (the specific case presented there, but not the general goal of that issue) by checking for mismatched parentheses after a parser error. Unclosed parens are often a root cause of otherwise much-more-cryptic errors, so reporting them should have priority.

@tau-dev tau-dev force-pushed the check-parens branch 3 times, most recently from d373770 to 75304ad Compare July 28, 2024 16:22
@tau-dev tau-dev force-pushed the check-parens branch 2 times, most recently from e9b9573 to ea6aaeb Compare August 6, 2024 09:22
Addresses ziglang#18597 (the specific case presented there, but not the
general goal of that issue) by checking for mismatched parentheses after
a parser error. Unclosed parens are often a root cause of otherwise
much-more-cryptic errors, so reporting them should have priority.
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