Bug fix
This commit is contained in:
parent
eb5a23761d
commit
c2cd319d0c
1
parse.c
1
parse.c
@ -1072,6 +1072,7 @@ bool parse_stat(Parser *P) {
|
|||||||
|
|
||||||
Scope *new_scope = calloc(1, sizeof(*new_scope));
|
Scope *new_scope = calloc(1, sizeof(*new_scope));
|
||||||
new_scope->parent = P->scope;
|
new_scope->parent = P->scope;
|
||||||
|
P->scope = new_scope;
|
||||||
|
|
||||||
expect(P, TOK_DO);
|
expect(P, TOK_DO);
|
||||||
parse_chunk(P);
|
parse_chunk(P);
|
||||||
|
Loading…
Reference in New Issue
Block a user