[ruby/prism] Fix parser translator ast for heredoc with written newlines

Heredocs that contain "\\n" don't start a new string node.

61d9d3a15e
This commit is contained in:
Earlopain 2025-01-03 19:14:15 +01:00 committed by git
parent 179e2cfa91
commit c037f5a28c
2 changed files with 27 additions and 7 deletions

View file

@ -65,14 +65,12 @@ module Prism
"seattlerb/heredoc_with_extra_carriage_returns_windows.txt",
"seattlerb/heredoc_with_only_carriage_returns_windows.txt",
"seattlerb/heredoc_with_only_carriage_returns.txt",
"seattlerb/parse_line_heredoc_hardnewline.txt",
"seattlerb/pctW_lineno.txt",
"seattlerb/regexp_esc_C_slash.txt",
"unparser/corpus/literal/literal.txt",
"unparser/corpus/semantic/dstr.txt",
"whitequark/dedenting_interpolating_heredoc_fake_line_continuation.txt",
"whitequark/parser_slash_slash_n_escaping_in_literals.txt",
"whitequark/ruby_bug_11989.txt"
]
# Not sure why these files are failing on JRuby, but skipping them for now.