lang: ast: fix parsing of tuple iterator declaration in for-loops

This commit is contained in:
2025-09-08 16:00:42 +01:00
parent 59a85e9c47
commit d95a544ff2

View File

@@ -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);