mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-30 06:21:45 +00:00
linecounting issue in the lexer
This commit is contained in:
parent
9a9ecd574e
commit
04347508e6
1 changed files with 4 additions and 4 deletions
8
lexer.c
8
lexer.c
|
@ -883,14 +883,14 @@ int lex_do(lex_file *lex)
|
|||
continue;
|
||||
}
|
||||
|
||||
lex->sline = lex->line;
|
||||
lex->tok.ctx.line = lex->sline;
|
||||
lex->tok.ctx.file = lex->name;
|
||||
|
||||
if (lex->flags.preprocessing && (ch == TOKEN_WHITE || ch == TOKEN_EOL || ch == TOKEN_FATAL)) {
|
||||
return (lex->tok.ttype = ch);
|
||||
}
|
||||
|
||||
lex->sline = lex->line;
|
||||
lex->tok.ctx.line = lex->sline;
|
||||
lex->tok.ctx.file = lex->name;
|
||||
|
||||
if (lex->eof)
|
||||
return (lex->tok.ttype = TOKEN_FATAL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue