Core: Add continue keyword

This commit is contained in:
Krzosa Karol
2023-04-21 08:02:58 +02:00
parent e6bf6b680e
commit 200b5e4f9f
11 changed files with 33 additions and 11 deletions

View File

@@ -295,6 +295,10 @@ parse_stmt_scope(Ast_Scope *scope_defined_outside = 0) {
scope->stmts.add(ast_return(token, expr));
}
else if (token_match_keyword(pctx->keyword_continue)) {
scope->stmts.add(ast_continue(token));
}
else if (token_match_keyword(pctx->keyword_break)) {
scope->stmts.add(ast_break(token));
}