Fix parsing error for for

This commit is contained in:
gingerBill
2021-05-02 00:11:36 +01:00
parent 9854dbe889
commit 348d25c43a

View File

@@ -3975,7 +3975,7 @@ Ast *parse_for_stmt(AstFile *f) {
}
}
if (!is_range && allow_token(f, Token_Semicolon)) {
if (!is_range && parse_control_statement_semicolon_separator(f)) {
init = cond;
cond = nullptr;
if (f->curr_token.kind != Token_Semicolon) {