diff options
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) |
