mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
preserve newlines in preprocessed multiline comments
This commit is contained in:
parent
6df6906ed2
commit
e3c1244687
1 changed files with 4 additions and 1 deletions
3
lexer.c
3
lexer.c
|
@ -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); */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue