Skip to content
Permalink
Browse files
parse.y: lparen_arg statement
allow parenthesised statement as a method argument.
reported [Feature:12686] in bugs.ruby-lang.org fixed in CRuby 2.4.
  • Loading branch information
nobu committed Aug 19, 2016
1 parent 0597f66 commit 73dd82e30a2c0680461a3a8307c06bdf0d7e156f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -2090,7 +2090,7 @@ primary : literal
$<stack>$ = p->cmdarg_stack;
p->cmdarg_stack = 0;
}
expr {p->lstate = EXPR_ENDARG;} rparen
stmt {p->lstate = EXPR_ENDARG;} rparen
{
p->cmdarg_stack = $<stack>2;
$$ = $3;

0 comments on commit 73dd82e

Please sign in to comment.