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,6 +607,9 @@ static int lex_skipwhite(lex_file *lex)
lex_ungetch(lex, ch); lex_ungetch(lex, ch);
} }
if (lex->flags.preprocessing) { if (lex->flags.preprocessing) {
if (ch == '\n')
lex_tokench(lex, '\n');
else
lex_tokench(lex, ' '); /* ch); */ lex_tokench(lex, ' '); /* ch); */
} }
} }