summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-04 10:07:42 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-04 10:07:42 +0900
commitabecb7814436ce49f5a0df75a082be499ffa3ed1 (patch)
treeb53f9f2b2145b6ed8aae3d4995718b7fd893a59f /src/parse.y
parent20a5d57d16f6261d598f15e259f9d9b2992b379c (diff)
downloadmruby-abecb7814436ce49f5a0df75a082be499ffa3ed1.tar.gz
mruby-abecb7814436ce49f5a0df75a082be499ffa3ed1.zip
allow reserved word for heredoc terminator
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y
index dfe573b95..677a39736 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -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;
}
}