mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
Don't skip the \n after parsing a pragma in the lexer otherwise 2 pragmas in the row wouldn't work
This commit is contained in:
parent
a5dbfacf2f
commit
43a72b2a63
1 changed files with 1 additions and 3 deletions
4
lexer.c
4
lexer.c
|
@ -498,10 +498,8 @@ static int lex_skipwhite(lex_file *lex)
|
|||
ch = lex_getch(lex);
|
||||
while (ch != EOF && isspace(ch)) {
|
||||
if (ch == '\n') {
|
||||
if (lex_try_pragma(lex)) {
|
||||
ch = lex_getch(lex);
|
||||
if (lex_try_pragma(lex))
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (lex->flags.preprocessing) {
|
||||
if (ch == '\n') {
|
||||
|
|
Loading…
Reference in a new issue