From b05a46c78ca40e6838ee49121fdc5d02823ed44b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 12 Apr 2018 20:39:17 -0700 Subject: Incremental progress. --- core/metaprogramming.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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: -- cgit v1.2.3