From fa212200df2e1dcf3349decf8ec819019371891f Mon Sep 17 00:00:00 2001 From: Chris Seufert Date: Fri, 8 Mar 2024 17:13:21 +1100 Subject: [PATCH] Aded heredoc test case --- test/snapshot/heredoc.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 <<