mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Always print the char the lexer fails on for a token.
This commit is contained in:
parent
b2c8f3ebc5
commit
6800d15872
1 changed files with 1 additions and 1 deletions
2
lexer.c
2
lexer.c
|
@ -1519,6 +1519,6 @@ int lex_do(lex_file *lex)
|
||||||
return (lex->tok.ttype = ch);
|
return (lex->tok.ttype = ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
lexerror(lex, "unknown token: `%s`", lex->tok.value);
|
lexerror(lex, "unknown token: `%c`", ch);
|
||||||
return (lex->tok.ttype = TOKEN_ERROR);
|
return (lex->tok.ttype = TOKEN_ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue