aboutsummaryrefslogtreecommitdiff
path: root/core/metaprogramming.nom
diff options
context:
space:
mode:
Diffstat (limited to 'core/metaprogramming.nom')
-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 (..)