aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-09 16:30:29 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-09 16:30:29 -0800
commit787c7c5a6ce4ac6ba19890faf1afa067ea167104 (patch)
tree82334c99ef0310ea83ac191dfbe281848584c1d0 /nomsu.moon
parent421abe1a6f6c04ba55106b9154160ccd45d83610 (diff)
Propagating filename
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 26bea8e..40350d9 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -344,7 +344,7 @@ class NomsuCompiler
@assert tree, "Failed to parse: #{src}"
@assert tree.type == "File", "Attempt to run non-file: #{tree.type}"
- lua = @tree_to_lua(tree)
+ lua = @tree_to_lua(tree, filename)
lua_code = lua.statements or (lua.expr..";")
lua_code = "-- File: #{filename}\n"..lua_code
ret = @run_lua(lua_code, vars)