diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 17:02:39 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 17:02:53 -0800 |
| commit | fa3f598fc3b91d92665fda293460944f75c95b67 (patch) | |
| tree | a5d19eac16d81873ab51171bdd5670793baa4ff8 /nomsu_decompiler.lua | |
| parent | 69aaea030e08e083151aa25b8080eddd0d4c1683 (diff) | |
Fixing the upgrade pipeline, plus some misc. fixes.
Diffstat (limited to 'nomsu_decompiler.lua')
| -rw-r--r-- | nomsu_decompiler.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index a3d7f41..77905e5 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -179,7 +179,7 @@ tree_to_inline_nomsu = function(tree) elseif "FileChunks" == _exp_0 then return error("Can't inline a FileChunks") elseif "Comment" == _exp_0 then - return nil + return NomsuCode:from(tree.source) elseif "Error" == _exp_0 then return error("Can't compile errors") else @@ -397,7 +397,7 @@ tree_to_nomsu = function(tree) nomsu:append(": ", value_nomsu) return nomsu elseif "Comment" == _exp_0 then - nomsu:append("#", tree[1]:gsub("\n", "\n ")) + nomsu:append("#", (tree[1]:gsub("\n", "\n "))) return nomsu elseif "IndexChain" == _exp_0 or "Number" == _exp_0 or "Var" == _exp_0 or "Comment" == _exp_0 or "Error" == _exp_0 then return tree_to_inline_nomsu(tree) |
