diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 17:32:48 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 17:33:04 -0800 |
| commit | ed70165294a6b846a9b0d513689dea03539755f7 (patch) | |
| tree | 5f81723db4638e322d2b9d1a8d07000b2c5cb59d /nomsu_decompiler.lua | |
| parent | e96ae0c78dc511d361d37bc69259d18a68648b8f (diff) | |
Better handling of shebangs and comments at the top of a file.
Diffstat (limited to 'nomsu_decompiler.lua')
| -rw-r--r-- | nomsu_decompiler.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
