From 339b34be474debfb1a4452ecf5d62cd491bf07d2 Mon Sep 17 00:00:00 2001 From: HParker Date: Thu, 17 Aug 2023 09:41:14 -0700 Subject: [PATCH] [ruby/yarp] handle missing HEREDOC endline at start of heredoc https://github.com/ruby/yarp/commit/7b72493b6d --- .../fixtures/heredoc_with_escaped_newline_at_start.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/yarp/fixtures/heredoc_with_escaped_newline_at_start.txt diff --git a/test/yarp/fixtures/heredoc_with_escaped_newline_at_start.txt b/test/yarp/fixtures/heredoc_with_escaped_newline_at_start.txt new file mode 100644 index 0000000000..81f314e0b3 --- /dev/null +++ b/test/yarp/fixtures/heredoc_with_escaped_newline_at_start.txt @@ -0,0 +1,7 @@ +<<-TARGET.gsub /^\s{/, ''\ +TARGET + + +<<-TARGET.gsub /^\s{/, ''\ +TARGET +