aboutsummaryrefslogtreecommitdiff
path: root/core/metaprogramming.nom
diff options
context:
space:
mode:
Diffstat (limited to 'core/metaprogramming.nom')
-rw-r--r--core/metaprogramming.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom
index 24201b0..d7409d2 100644
--- a/core/metaprogramming.nom
+++ b/core/metaprogramming.nom
@@ -49,9 +49,9 @@ immediately:
lua:append(arg);
if i < #args then lua:append(", ") end
end
- local body_lua = nomsu:tree_to_lua(\%lua):as_statements();
+ local body_lua = nomsu:tree_to_lua(\%body):as_statements();
body_lua:declare_locals(args);
- lua:append("\\n ", body_lua, "\\nend);")
+ lua:append(")\\n ", body_lua, "\\nend);")
return lua;
# Macro to make nomsu macros: