allow reserved word for heredoc terminator

This commit is contained in:
Yukihiro Matz Matsumoto
2013-03-04 10:07:42 +09:00
parent 20a5d57d16
commit abecb78144
+1
View File
@@ -3942,6 +3942,7 @@ parser_yylex(parser_state *p)
if (!ISSPACE(c2)) {
tokfix(p);
yylval.nd = new_str(p, tok(p), toklen(p));
p->lstate = EXPR_DOT;
return tHEREDOC_BEG;
}
}