mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
Fix a bug in the lexer causing double-dots to double the character after the 2nd dot
This commit is contained in:
parent
e22af32805
commit
9a9ecd574e
1 changed files with 1 additions and 1 deletions
2
lexer.c
2
lexer.c
|
@ -1110,7 +1110,7 @@ int lex_do(lex_file *lex)
|
|||
nextch = lex_getch(lex);
|
||||
if (nextch != '.') {
|
||||
lex_ungetch(lex, nextch);
|
||||
lex_ungetch(lex, nextch);
|
||||
lex_ungetch(lex, '.');
|
||||
lex_endtoken(lex);
|
||||
return (lex->tok.ttype = ch);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue