From d3905474c9c84da4a789f6dc40aa1ae7d0bfaf2a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 14 Dec 2018 20:53:00 -0800 Subject: Removed EOL comments --- nomsu_decompiler.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nomsu_decompiler.lua') diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index 1d445c9..c3b7cb2 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -227,6 +227,9 @@ tree_to_nomsu = function(tree) for subtree in coroutine.wrap(function() return (t:map(coroutine.yield) and nil) end) do + if subtree.type == "Comment" then + try_inline = false + end if subtree.type == "Block" then if #subtree > 1 then try_inline = false @@ -456,6 +459,7 @@ tree_to_nomsu = function(tree) item_nomsu = recurse(item) end if item.type == 'Comment' then + sep = '\n' item_nomsu = tree_to_nomsu(item) end nomsu:add(sep) -- cgit v1.2.3