Commit 919cbd8
mruby-compiler: allow compound statement in tLPAREN_ARG
Change the grammar rule for tLPAREN_ARG from accepting only a
single stmt to accepting compstmt. This allows compound
statements with semicolons inside parenthesized arguments when
the parenthesis is preceded by a space, e.g., `p (f1; f2)`.
This matches the behavior of CRuby 3.3+.
Fixes #6766.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 801eefe commit 919cbd8
2 files changed
Lines changed: 1865 additions & 1833 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3260 | 3260 | | |
3261 | 3261 | | |
3262 | 3262 | | |
3263 | | - | |
| 3263 | + | |
3264 | 3264 | | |
3265 | 3265 | | |
3266 | 3266 | | |
| |||
0 commit comments