lang: ast: fix parsing of tuple iterator declaration in for-loops
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user