diff --git a/lang/ast/for.c b/lang/ast/for.c index c5507d5..10499e2 100644 --- a/lang/ast/for.c +++ b/lang/ast/for.c @@ -69,6 +69,7 @@ static struct token_parse_result parse_in( /* set the sub-expression depth to be non-zero so the expression parser doesn't consume the expression separator. */ expr->s_subexpr_depth = 1; expr_add_terminator(expr, IVY_KW_DO); + expr_add_terminator(expr, IVY_SYM_RIGHT_PAREN); state->s_prev_token = IVY_KW_IN; return PARSE_RESULT(IVY_OK, 0);