projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
275a693
)
bugfix: code block scoping
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 16 Feb 2024 00:05:20 +0000
(18:05 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 16 Feb 2024 00:05:20 +0000
(18:05 -0600)
compiler/src/checker.c
patch
|
blob
|
history
diff --git
a/compiler/src/checker.c
b/compiler/src/checker.c
index 57d436c5f97f2db395de4fa5003f95ade5875228..6ca68a1c7cd1660d85880831807f524e76ce979c 100644
(file)
--- a/
compiler/src/checker.c
+++ b/
compiler/src/checker.c
@@
-2622,6
+2622,7
@@
CheckStatus check_insert_directive(AstDirectiveInsert** pinsert, b32 expected_ex
AstBlock* body_block = onyx_ast_node_new(context.ast_alloc, sizeof(AstBlock), Ast_Kind_Block);
body_block->token = cloned_block->token;
body_block->body = (AstNode *) return_node;
+ body_block->rules = Block_Rule_Code_Block;
scope = &((AstBlock *) body_block)->quoted_block_capture_scope;
AstDoBlock* doblock = (AstDoBlock *) onyx_ast_node_new(context.ast_alloc, sizeof(AstDoBlock), Ast_Kind_Do_Block);