mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
allow reserved word for heredoc terminator
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user