Skip to content

Commit 969060f

Browse files
committed
fixup! Handle \r\n in continuation lines
1 parent 68e7b36 commit 969060f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Parser/tokenizer.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2413,7 +2413,10 @@ tok_get_normal_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct t
24132413
else {
24142414
end_quote_size = 0;
24152415
if (c == '\\') {
2416-
tok_nextc(tok); /* skip escaped char */
2416+
c = tok_nextc(tok); /* skip escaped char */
2417+
if (c == '\r') {
2418+
c = tok_nextc(tok);
2419+
}
24172420
}
24182421
}
24192422
}

0 commit comments

Comments
 (0)