improve some error messages
This commit is contained in:
parent
4b16fa029f
commit
bb515636ff
1 changed files with 1 additions and 1 deletions
|
|
@ -1473,7 +1473,7 @@ std::pair<for_block*, parse_context> parse_for(parse_context ctx)
|
||||||
// end of arg list
|
// end of arg list
|
||||||
if(!is_in(ctx[ctx.i], "\n;#"))
|
if(!is_in(ctx[ctx.i], "\n;#"))
|
||||||
{
|
{
|
||||||
parse_error( unexpected_token(ctx[ctx.i])+", expecting '\\n' or ';'", ctx );
|
parse_error( unexpected_token(ctx[ctx.i])+", expecting newline, ';' or 'in'", ctx );
|
||||||
while(!is_in(ctx[ctx.i], "\n;#"))
|
while(!is_in(ctx[ctx.i], "\n;#"))
|
||||||
ctx.i++;
|
ctx.i++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue