fix: don't mess up multiline macros in files ending with \r\n

This commit is contained in:
Wolfgang Bumiller 2013-02-20 23:08:50 +01:00
parent 1dfd375738
commit 80184b0d80

View file

@ -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 = '\\';