Permalink
Browse files

Update NODE_BLOCK check logic in `void_expr_error`.

  • Loading branch information...
matz committed Jun 2, 2017
1 parent 563036e commit 31e30686b0bd9333eb0593fb1fb43b9b99744517
Showing with 4 additions and 5 deletions.
  1. +4 −5 mrbgems/mruby-compiler/core/parse.y
@@ -3474,12 +3474,11 @@ void_expr_error(parser_state *p, node *n)
void_expr_error(p, n->cdr->cdr);
break;
case NODE_BEGIN:
if (n->cdr) {
while (n->cdr) {
n = n->cdr;
}
void_expr_error(p, n->car);
n = n->cdr;
while (n->cdr) {
n = n->cdr;
}
void_expr_error(p, n->car);
break;
default:
break;

0 comments on commit 31e3068

Please sign in to comment.