diff --git a/test/snapshot/heredoc.test.js b/test/snapshot/heredoc.test.js index 61f41bc37..a7c277b6e 100644 --- a/test/snapshot/heredoc.test.js +++ b/test/snapshot/heredoc.test.js @@ -505,4 +505,16 @@ $b = <<<'EOT' ) ).toMatchSnapshot(); }); + + it("Can parse HEREDOC with escaped characters #1130", () => { + expect( + parser.parseEval(` + if (true) { + echo <<