aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 96053eb..94b5388 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -162,6 +162,8 @@ run = ->
env = nomsu_environment.new_environment!
env.MODULE_NAME = filename
tree = env._1_parsed(code)
+ if tree.shebang
+ output\write tree.shebang
tree = {tree} unless tree.type == 'FileChunks'
for chunk_no, chunk in ipairs tree
lua = env\compile(chunk)