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

Add a multiple statements flag to parentheses #3496

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

kddnewton
Copy link
Collaborator

This can get triggered even if the list of statements only contains a single statement. This is necessary to properly support compiling

defined? (;a)
defined? (a;)

as "expression". Previously these were parsed as statements lists with single statements in them.

This can get triggered even if the list of statements only contains
a single statement. This is necessary to properly support compiling

```ruby
defined? (;a)
defined? (a;)
```

as "expression". Previously these were parsed as statements lists
with single statements in them.
@kddnewton kddnewton merged commit 55408bf into main Mar 18, 2025
60 checks passed
@kddnewton kddnewton deleted the multiple-statements-flag branch March 18, 2025 14:33
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.

None yet

1 participant