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

fix: allow semicolon in nested do-while statements. #463

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

stevenh
Copy link
Collaborator

@stevenh stevenh commented Nov 27, 2022

In nested do-while statements, a semicolon after the inner while threw a parsing error. This change checks for the optional semicolon.

Fixes #309

In nested do-while statements, a semicolon after the inner `while` threw
a parsing error. This change checks for the optional semicolon.
@stevenh stevenh merged commit a5b0ade into robertkrimen:master Nov 28, 2022
sg3des pushed a commit to sg3des/otto that referenced this pull request Jul 17, 2023
In nested do-while statements, a semicolon after the inner `while` threw
a parsing error. This change checks for the optional semicolon.

Co-authored-by: Brian Graham <[email protected]>
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.

Semicolon-related parsing error in nested do-while
2 participants