Skip to content

Add a multiple statements flag to parentheses#3496

Merged
kddnewton merged 1 commit intomainfrom
multiple-statements-flag
Mar 18, 2025
Merged

Add a multiple statements flag to parentheses#3496
kddnewton merged 1 commit intomainfrom
multiple-statements-flag

Conversation

@kddnewton
Copy link
Copy Markdown
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.

1 participant