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);