Merge pull request #5812 from FnControlRuby/block

parse.y: fix return/break/next with method call with args and block
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-10-29 16:29:41 +09:00
committed by GitHub
2 changed files with 1039 additions and 1029 deletions
+5
View File
@@ -1283,6 +1283,11 @@ call_with_block(parser_state *p, node *a, node *b)
if (!n->car) n->car = new_callargs(p, 0, 0, b);
else args_with_block(p, n->car, b);
break;
case NODE_RETURN:
case NODE_BREAK:
case NODE_NEXT:
call_with_block(p, a->cdr, b);
break;
default:
break;
}
File diff suppressed because it is too large Load Diff