Merge pull request #4823 from shuujii/fix-here-document-with-EOF

Fix here document with EOF
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-11-15 08:16:33 +09:00
committed by GitHub
+1 -6
View File
@@ -4381,12 +4381,7 @@ parse_string(parser_state *p)
}
}
if ((len-1 == hinf->term_len) && (strncmp(s, hinf->term, len-1) == 0)) {
if (c < 0) {
p->parsing_heredoc = NULL;
}
else {
return tHEREDOC_END;
}
return tHEREDOC_END;
}
}
if (c < 0) {