lang: ast: implement support for multiple expression terminator tokens
This commit is contained in:
@@ -38,7 +38,7 @@ struct token_parse_result parse_while(struct ivy_parser *ctx, struct ivy_token *
|
||||
|
||||
state->s_prev_token = IVY_KW_WHILE;
|
||||
expr->s_subexpr_depth = 1;
|
||||
expr->s_terminator = IVY_KW_DO;
|
||||
expr_add_terminator(expr, IVY_KW_DO);
|
||||
|
||||
return PARSE_RESULT(IVY_OK, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user