mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Listen to the warning instead...
This commit is contained in:
parent
b08de6ee5f
commit
e1c4600260
1 changed files with 3 additions and 2 deletions
5
parser.c
5
parser.c
|
@ -575,11 +575,13 @@ static bool parser_body_do(parser_t *parser, ast_block *block)
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
parseerror(parser, "Unexpected keyword");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else if (parser->tok == '{')
|
else if (parser->tok == '{')
|
||||||
{
|
{
|
||||||
/* a block */
|
/* a block */
|
||||||
parseerror(parser, "TODO: inner blocks");
|
parseerror(parser, "TODO: inner blocks: %s", parser_tokval(parser));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -593,7 +595,6 @@ static bool parser_body_do(parser_t *parser, ast_block *block)
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static ast_block* parser_parse_block(parser_t *parser)
|
static ast_block* parser_parse_block(parser_t *parser)
|
||||||
|
|
Loading…
Reference in a new issue