diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-20 16:16:41 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-20 16:16:41 -0700 |
| commit | 938adbfe446e7f4a4e45b9dd27b5cf2e7ee4070c (patch) | |
| tree | 1a28126609a6d2ad3acabfa044aea106f0abf10b /lib/compatibility/2.nom | |
| parent | e665d9725c4bb02f4c18d16527367f424cb880fa (diff) | |
Switching more verbose ("Action" tree with "foo" $x) syntax to `(foo
`$x) when possible
Diffstat (limited to 'lib/compatibility/2.nom')
| -rw-r--r-- | lib/compatibility/2.nom | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compatibility/2.nom b/lib/compatibility/2.nom index 2deeca2..4dc867d 100644 --- a/lib/compatibility/2.nom +++ b/lib/compatibility/2.nom @@ -17,8 +17,7 @@ upgrade $tree to "2" as: unless ($false_body is "Block" syntax tree): $false_body = (=lua "Block(\$false_body.source, \$false_body)") - return - "Action" tree with "if" ($tree.2 upgraded) $true_body "else" $false_body + return `(if `($tree.2 upgraded) `$true_body else `$false_body) $need_blocks = [ "if", "unless", "for 1 in", "for 1 = 2 in", "repeat while 1", "repeat 1 times" |
