aboutsummaryrefslogtreecommitdiff
path: root/lib/compatibility/7.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-20 15:55:57 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-20 15:55:57 -0700
commite665d9725c4bb02f4c18d16527367f424cb880fa (patch)
treeaed161ee6b338c2bad2312591f746459414ccafa /lib/compatibility/7.nom
parent606fd090002f3d545cbd58440e96624907846f45 (diff)
Auto-updated to 7.0.0 syntax and removed some shims.
Diffstat (limited to 'lib/compatibility/7.nom')
-rw-r--r--lib/compatibility/7.nom16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/compatibility/7.nom b/lib/compatibility/7.nom
index df60f21..c84be0c 100644
--- a/lib/compatibility/7.nom
+++ b/lib/compatibility/7.nom
@@ -1,4 +1,5 @@
-#!/usr/bin/env nomsu -V7
+#!/usr/bin/env nomsu -V7.0.0
+
###
This file defines upgrades from Nomsu <7 to 7
@@ -33,10 +34,15 @@ upgrade action (for $var in $start to $stop $body) to "7" as
upgrade $tree to "7" as:
if ($tree.type == "EscapedNomsu"):
$t =
- "Action" tree from $tree.source with ("Text" tree with $tree.1.type) "tree" "with"
+ "Action" tree from $tree.source with ("Text" tree with $tree.1.type) "tree"
+ "with"
+
for $tok in $tree.1:
- if ($tok is "Text"): $t, add ("Text" tree with $tok)
- ..else: $t, add $tok
+ if ($tok is "Text"):
+ $t, add ("Text" tree with $tok)
+ ..else:
+ $t, add $tok
+
return $t
upgrade action "Nomsu version" to "7" via ->(`$(NOMSU VERSION))
@@ -47,4 +53,4 @@ upgrade action [
at $.source fail ("
Deprecation error: Actions for accessing specific parts of the version number have been deprecated.
Hint: Use $(NOMSU VERSION).1, etc. instead.
- ")
+ ") \ No newline at end of file