diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-13 15:29:16 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-13 15:29:20 -0700 |
| commit | 25e06d1fce660e7c8144425b440f7b1c698e2fb7 (patch) | |
| tree | 3636abb32881a757ba907c2a8cf218090e6d28bd /nomsu.moon | |
| parent | 8f6f941d897a5678ab09bb9b21e0274743857587 (diff) | |
Getting closer.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1133,7 +1133,9 @@ if arg and debug_getinfo(2).func != require if info.short_src or info.source or info.linedefine or info.currentline if metadata = nomsu.action_metadata[info.func] info.name = metadata.aliases[1] - filename = metadata.source\match("^[^[:]*") + filename = if type(metadata.source) == 'string' + metadata.source\match("^[^[:]*") + else metadata.source.filename info.short_src = filename info.source = FILE_CACHE[filename] ok, linedefined = pcall(lua_line_to_nomsu_line, info.short_src, info.linedefined) |
