diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 16:40:36 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 16:41:19 -0800 |
| commit | 69aaea030e08e083151aa25b8080eddd0d4c1683 (patch) | |
| tree | 6cd90a65e6828f60cc052c4a1b33a4a4c0d65570 /compatibility | |
| parent | a2f07415c5284bf94c146cea6eed4a15f171b9ab (diff) | |
No longer passing `tree` to every compile action. Now, you can just
return a LuaCode object, and it will automatically get a source from
`tree` if it didn't already have a source. Plus some fixes/cleanup.
Diffstat (limited to 'compatibility')
| -rw-r--r-- | compatibility/compatibility.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compatibility/compatibility.nom b/compatibility/compatibility.nom index 184ca56..4e22dbc 100644 --- a/compatibility/compatibility.nom +++ b/compatibility/compatibility.nom @@ -79,13 +79,13 @@ externally [..] if ((%ver as list) > (%end_version as list)): stop %ver if %ACTION_UPGRADES.%ver: %tree = (..) - %tree with % -> (..) + %tree with % ->: if ((% is "Action" syntax tree) and %ACTION_UPGRADES.%ver.(%.stub)): %with_upgraded_args = (..) %k = (%v upgraded from %start_version to %end_version) for %k = %v in % set %with_upgraded_args 's metatable to (% 's metatable) return (..) - call %ACTION_UPGRADES.%ver.(%.stub) with [%with_upgraded_args, %end_version] + %ACTION_UPGRADES.%ver.(%.stub) %with_upgraded_args %end_version if %UPGRADES.%ver: %with_upgraded_args = (..) |
