From d30f6a397d274b0b942bdd2e2648b42538f1cbe2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 14 Dec 2018 20:34:27 -0800 Subject: Fixed some bugs, including upgrade --upgrade-from=version not working. Also updated the README. --- core/metaprogramming.nom | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/metaprogramming.nom') diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 6353933..21de3df 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -301,10 +301,7 @@ externally ($ is $kind syntax tree) means (..) ($tree with $t -> $replacement) compiles to " \($tree as lua expr):map(function(\($t as lua expr)) - \(..) - ($replacement as lua) if ($replacement.type == "Block") else \ - .."return \($replacement as lua expr)" - .. + \(=lua "\$replacement.type == 'Block' and \($replacement as lua) or 'return '..\($replacement as lua expr)") end)" externally ($tree with vars $replacements) means (..) -- cgit v1.2.3