mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mirb should detect end of expression smarter
This commit is contained in:
@@ -4630,6 +4630,11 @@ mrb_parser_parse(parser_state *p)
|
||||
p->tree = p->begin_tree = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
p->cmd_start = TRUE;
|
||||
p->in_def = p->in_single = FALSE;
|
||||
p->nerr = p->nwarn = 0;
|
||||
|
||||
yyparse(p);
|
||||
tree = p->tree;
|
||||
if (!tree) {
|
||||
|
||||
Reference in New Issue
Block a user