Skip to content

Commit

Permalink
[PRISM] Use depth_offset not transparent scopes for FOR
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Dec 1, 2023
1 parent ce5f5ca commit 3b21932
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prism_compile.c
Expand Up @@ -1375,6 +1375,7 @@ pm_scope_node_init(const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_
case PM_FOR_NODE: {
pm_for_node_t *cast = (pm_for_node_t *)node;
scope->body = (pm_node_t *)cast->statements;
scope->local_depth_offset += 1;
break;
}
case PM_INTERPOLATED_REGULAR_EXPRESSION_NODE: {
Expand Down

0 comments on commit 3b21932

Please sign in to comment.