From 5027bd4f0f2c6dcebf667a6924c50b0ca3df235f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 26 Nov 2018 16:28:06 -0800 Subject: Upgraded/autoformatted. --- compatibility/compatibility.nom | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compatibility/compatibility.nom') diff --git a/compatibility/compatibility.nom b/compatibility/compatibility.nom index 4d96d89..56a3b2c 100644 --- a/compatibility/compatibility.nom +++ b/compatibility/compatibility.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V4.11.12.8 +#!/usr/bin/env nomsu -V4.12.12.8 # This file contains code for defining ways to upgrade code between different versions of Nomsu. @@ -92,11 +92,13 @@ externally [..] add %k = (%v upgraded from %start_version to %end_version) set %with_upgraded_args's metatable to (%tree's metatable) %tree = (%UPGRADES.%ver %with_upgraded_args %end_version) + if (%tree.version != %end_version): %tree = (SyntaxTree {: for %k = %v in %tree: add %k = %v}) %tree.version = %end_version if %tree.shebang: %tree.shebang = "#!/usr/bin/env nomsu -V\%end_version\n" + return %tree externally (%tree upgraded from %start_version) means (..) -- cgit v1.2.3