diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-19 16:15:11 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-19 16:15:11 +0900 |
| commit | 6f6c270bb13ff6e68f39e863f11706ba0bf28500 (patch) | |
| tree | d759a373c396c7fc41c13a4e35c6d98ac0a0e7d3 /src/parse.y | |
| parent | aeca23166b8e822ba8c3126ac9b1b0e76914fab7 (diff) | |
| download | mruby-6f6c270bb13ff6e68f39e863f11706ba0bf28500.tar.gz mruby-6f6c270bb13ff6e68f39e863f11706ba0bf28500.zip | |
mirb should detect end of expression smarter
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y index 8acdf983a..2b2dd6851 100644 --- a/src/parse.y +++ b/src/parse.y @@ -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) { |
