Fix static array issue and scratch issue.

This commit is contained in:
2025-10-24 11:35:42 +02:00
parent da660ad87e
commit b30e04f2fa
6 changed files with 60 additions and 9 deletions

View File

@@ -559,8 +559,8 @@ lex :: (ctx : *Compiler_Context, allocator := temp) {
new_context := context;
new_context.allocator = allocator;
push_context new_context {
init_context_allocators();
defer clear_context_allocators();
init_scratch();
defer clear_scratch();
lexer : Lexer;
lexer.ctx = ctx;