diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 20:34:27 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 20:34:49 -0800 |
| commit | d30f6a397d274b0b942bdd2e2648b42538f1cbe2 (patch) | |
| tree | 56adafac78b01411b995ab5e41a8ceb777bcd5e6 /core/metaprogramming.nom | |
| parent | 4fe63f253f58f87ab986fea38902d95f2a5ea338 (diff) | |
Fixed some bugs, including upgrade --upgrade-from=version not working.
Also updated the README.
Diffstat (limited to 'core/metaprogramming.nom')
| -rw-r--r-- | core/metaprogramming.nom | 5 |
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 (..) |
