diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-20 19:12:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-20 19:14:04 +0900 |
| commit | b7049b3945862c7fae803c287d981b33268e955b (patch) | |
| tree | 74568cb3b743acebf2cab2f1322a03bfd67f6a13 /src/parse.y | |
| parent | bce38434564c559739f1f431c3725474eb610add (diff) | |
| download | mruby-b7049b3945862c7fae803c287d981b33268e955b.tar.gz mruby-b7049b3945862c7fae803c287d981b33268e955b.zip | |
there may be expecting here-doc when we see terminating characters; fix #2780
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parse.y b/src/parse.y index 7e313132b..55ad602ba 100644 --- a/src/parse.y +++ b/src/parse.y @@ -4116,10 +4116,9 @@ parser_yylex(parser_state *p) retry: last_state = p->lstate; switch (c = nextc(p)) { - case '\0': /* NUL */ case '\004': /* ^D */ case '\032': /* ^Z */ - return 0; + case '\0': /* NUL */ case -1: /* end of script. */ if (p->heredocs_from_nextline) goto maybe_heredoc; |
