summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-05-20 19:12:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-05-20 19:14:04 +0900
commitb7049b3945862c7fae803c287d981b33268e955b (patch)
tree74568cb3b743acebf2cab2f1322a03bfd67f6a13 /src/parse.y
parentbce38434564c559739f1f431c3725474eb610add (diff)
downloadmruby-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.y3
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;