From 80184b0d807ebab875fcc233cab557f5f9501a67 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 20 Feb 2013 23:08:50 +0100 Subject: [PATCH] fix: don't mess up multiline macros in files ending with \r\n --- lexer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lexer.c b/lexer.c index 42b21a1..d205e16 100644 --- a/lexer.c +++ b/lexer.c @@ -992,6 +992,8 @@ int lex_do(lex_file *lex) if (!lex->flags.mergelines || ch != '\\') break; ch = lex_getch(lex); + if (ch == '\r') + ch = lex_getch(lex); if (ch != '\n') { lex_ungetch(lex, ch); ch = '\\';