mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
Don't die on regular EOF
This commit is contained in:
parent
d581fdc048
commit
d6cd3b6dc9
1 changed files with 2 additions and 0 deletions
2
parser.c
2
parser.c
|
@ -146,6 +146,8 @@ bool parser_compile(const char *filename)
|
|||
while (parser->tok != TOKEN_EOF && parser->tok < TOKEN_ERROR)
|
||||
{
|
||||
if (!parser_do(parser)) {
|
||||
if (parser->tok == TOKEN_EOF)
|
||||
break;
|
||||
printf("parse error\n");
|
||||
lex_close(parser->lex);
|
||||
mem_d(parser);
|
||||
|
|
Loading…
Reference in a new issue