diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-09 16:30:29 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-09 16:30:29 -0800 |
| commit | 787c7c5a6ce4ac6ba19890faf1afa067ea167104 (patch) | |
| tree | 82334c99ef0310ea83ac191dfbe281848584c1d0 /nomsu.lua | |
| parent | 421abe1a6f6c04ba55106b9154160ccd45d83610 (diff) | |
Propagating filename
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -533,7 +533,7 @@ do local tree = self:parse(src, filename) self:assert(tree, "Failed to parse: " .. tostring(src)) self:assert(tree.type == "File", "Attempt to run non-file: " .. tostring(tree.type)) - local lua = self:tree_to_lua(tree) + local lua = self:tree_to_lua(tree, filename) local lua_code = lua.statements or (lua.expr .. ";") lua_code = "-- File: " .. tostring(filename) .. "\n" .. lua_code local ret = self:run_lua(lua_code, vars) |
