preserve newlines in preprocessed multiline comments

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-23 21:47:00 +01:00
parent 6df6906ed2
commit e3c1244687

View file

@ -607,7 +607,10 @@ static int lex_skipwhite(lex_file *lex)
lex_ungetch(lex, ch);
}
if (lex->flags.preprocessing) {
lex_tokench(lex, ' '); /* ch); */
if (ch == '\n')
lex_tokench(lex, '\n');
else
lex_tokench(lex, ' '); /* ch); */
}
}
ch = ' '; /* cause TRUE in the isspace check */