aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-12-14 20:34:27 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-12-14 20:34:49 -0800
commitd30f6a397d274b0b942bdd2e2648b42538f1cbe2 (patch)
tree56adafac78b01411b995ab5e41a8ceb777bcd5e6 /core
parent4fe63f253f58f87ab986fea38902d95f2a5ea338 (diff)
Fixed some bugs, including upgrade --upgrade-from=version not working.
Also updated the README.
Diffstat (limited to 'core')
-rw-r--r--core/metaprogramming.nom5
1 files changed, 1 insertions, 4 deletions
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 (..)