From 4eee17768547350261df39078cac36c89274d64c Mon Sep 17 00:00:00 2001 From: araq Date: Mon, 15 Dec 2025 11:10:20 +0100 Subject: [PATCH] progress --- compiler/ast2nif.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/ast2nif.nim b/compiler/ast2nif.nim index 55931f995b..c2a38845ff 100644 --- a/compiler/ast2nif.nim +++ b/compiler/ast2nif.nim @@ -712,7 +712,9 @@ proc writeNifModule*(config: ConfigRef; thisModule: int32; n: PNode; var dest = createTokenBuf(600) createStmtList(dest, rootInfo) dest.add w.deps - dest.add content + # do not write the (stmts .. ) wrapper: + for i in 3 ..< content.len-1: + dest.add content[i] dest.addParRi() writeFile(dest, d)