From 9c3e1b3c55c677206e6f70919f81484a7f0fe0c5 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Wed, 21 Jan 2026 16:40:19 +0000 Subject: Fix for #79 --- src/parser/parser.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/parser/parser.h') diff --git a/src/parser/parser.h b/src/parser/parser.h index 5757fbc..f566979 100644 --- a/src/parser/parser.h +++ b/src/parser/parser.h @@ -263,10 +263,11 @@ struct ParserContext int extern_symbol_count; // Codegen state: - FILE *hoist_out; // For plugins to hoist code to file scope - int skip_preamble; // If 1, codegen_node(NODE_ROOT) won't emit preamble - int is_repl; // REPL mode flag - int has_async; // Track if async features are used + FILE *hoist_out; // For plugins to hoist code to file scope + int skip_preamble; // If 1, codegen_node(NODE_ROOT) won't emit preamble + int is_repl; // REPL mode flag + int has_async; // Track if async features are used + int in_defer_block; // Track if currently parsing inside a defer block }; // Token helpers -- cgit v1.2.3