diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-26 16:28:06 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-26 16:28:06 -0800 |
| commit | 5027bd4f0f2c6dcebf667a6924c50b0ca3df235f (patch) | |
| tree | da3ed710dcbfc065a24ac3ab0c8b4917a22b6991 /compatibility/compatibility.nom | |
| parent | 8e5f1b9e1e912f781738a564843e024b0e0b2e96 (diff) | |
Upgraded/autoformatted.
Diffstat (limited to 'compatibility/compatibility.nom')
| -rw-r--r-- | compatibility/compatibility.nom | 4 |
1 files changed, 3 insertions, 1 deletions
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 (..) |
