We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5af773 + 8eeb5f3 commit 6545f63Copy full SHA for 6545f63
1 file changed
src/prism.c
@@ -12031,7 +12031,10 @@ parser_lex(pm_parser_t *parser) {
12031
// string content.
12032
if (heredoc_lex_mode->indent == PM_HEREDOC_INDENT_TILDE) {
12033
const uint8_t *end = parser->current.end;
12034
- pm_newline_list_append(&parser->newline_list, end);
+
12035
+ if (parser->heredoc_end == NULL) {
12036
+ pm_newline_list_append(&parser->newline_list, end);
12037
+ }
12038
12039
// Here we want the buffer to only
12040
// include up to the backslash.
0 commit comments