From c2cd319d0cb55198829b62f0b7627738fd2c42b5 Mon Sep 17 00:00:00 2001 From: Mid <> Date: Sat, 6 Sep 2025 14:58:10 +0300 Subject: [PATCH] Bug fix --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index d51273d..d4a7ccf 100644 --- a/parse.c +++ b/parse.c @@ -1072,6 +1072,7 @@ bool parse_stat(Parser *P) { Scope *new_scope = calloc(1, sizeof(*new_scope)); new_scope->parent = P->scope; + P->scope = new_scope; expect(P, TOK_DO); parse_chunk(P);