diff --git a/parser/parser_test.go b/parser/parser_test.go index ca2fddd7c..f216781a8 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -554,6 +554,10 @@ var shellTests = []struct { "< p.buriedHdocs { p.doHeredocs() + if p.tok == token.EOF { + return + } } case '\\': if p.npos < len(p.src)-1 && p.src[p.npos+1] == '\n' {