Unverified Commit c9f156ef authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

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

Fix here document with EOF
parents db437383 455930fb
...@@ -4381,14 +4381,9 @@ parse_string(parser_state *p) ...@@ -4381,14 +4381,9 @@ parse_string(parser_state *p)
} }
} }
if ((len-1 == hinf->term_len) && (strncmp(s, hinf->term, len-1) == 0)) { 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) { if (c < 0) {
char buf[256]; char buf[256];
const char s1[] = "can't find heredoc delimiter \""; const char s1[] = "can't find heredoc delimiter \"";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment