Bug fix
This commit is contained in:
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user