From ed70165294a6b846a9b0d513689dea03539755f7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 17:32:48 -0800 Subject: Better handling of shebangs and comments at the top of a file. --- nomsu_decompiler.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nomsu_decompiler.lua') diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index b1e02f7..142229a 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -223,6 +223,9 @@ tree_to_nomsu = function(tree) end local _exp_0 = tree.type if "FileChunks" == _exp_0 then + if tree.shebang then + nomsu:append(tree.shebang, "\n") + end local should_clump should_clump = function(prev_line, line) if prev_line.type == "Action" and line.type == "Action" then -- cgit v1.2.3