Skip to content

Commit

Permalink
Revert "Update NODE_BLOCK check logic in void_expr_error."
Browse files Browse the repository at this point in the history
This reverts commit 31e3068.
  • Loading branch information
matz committed Jun 2, 2017
1 parent a8bf374 commit 7f417ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mrbgems/mruby-compiler/core/parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -3474,11 +3474,12 @@ void_expr_error(parser_state *p, node *n)
void_expr_error(p, n->cdr->cdr);
break;
case NODE_BEGIN:
n = n->cdr;
while (n->cdr) {
n = n->cdr;
if (n->cdr) {
while (n->cdr) {
n = n->cdr;
}
void_expr_error(p, n->car);
}
void_expr_error(p, n->car);
break;
default:
break;
Expand Down

0 comments on commit 7f417ad

Please sign in to comment.