diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 20:53:00 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 20:54:18 -0800 |
| commit | d3905474c9c84da4a789f6dc40aa1ae7d0bfaf2a (patch) | |
| tree | fcf0e2361b7a877ca2ddb0112bfb14a7e1ea1cfa /nomsu_decompiler.lua | |
| parent | d30f6a397d274b0b942bdd2e2648b42538f1cbe2 (diff) | |
Removed EOL comments
Diffstat (limited to 'nomsu_decompiler.lua')
| -rw-r--r-- | nomsu_decompiler.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
