From e665d9725c4bb02f4c18d16527367f424cb880fa Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 20 Mar 2019 15:55:57 -0700 Subject: Auto-updated to 7.0.0 syntax and removed some shims. --- lib/compatibility/7.nom | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'lib/compatibility/7.nom') 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 -- cgit v1.2.3