mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2803 from carsonmcdonald/specinheredoc
Add null check on lex_strterm in heredoc block
This commit is contained in:
+3
-1
@@ -4150,7 +4150,9 @@ parser_yylex(parser_state *p)
|
||||
p->lineno++;
|
||||
p->column = 0;
|
||||
if (p->parsing_heredoc != NULL) {
|
||||
return parse_string(p);
|
||||
if (p->lex_strterm) {
|
||||
return parse_string(p);
|
||||
}
|
||||
}
|
||||
goto retry;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user