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

parser: improve token detection and error messages for unexpected EOFs, add tests #21110

Merged
merged 5 commits into from
Mar 27, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Mar 27, 2024

Fixes #21100, Second attempt of #21107.

@ttytm ttytm force-pushed the fix/eof-rpar-err branch 2 times, most recently from b592c7c to dad0bb7 Compare March 27, 2024 03:28
Comment on lines -56 to +71
p.check(.rpar)
p.next()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is less strict, it will accept any token in that position.

@spytheman spytheman merged commit 8997c51 into vlang:master Mar 27, 2024
54 checks passed
@ttytm ttytm deleted the fix/eof-rpar-err branch March 27, 2024 12:06
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.

"bad" error message for unterminated println
2 participants