diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-17 14:36:44 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-17 14:36:55 -0700 |
| commit | 26d0de8299c7568152f479320444833b4d30d0eb (patch) | |
| tree | 995feed96145619477a0b3547eb97e2f80521cdb /nomsu.moon | |
| parent | 54fc7fc4404c02df2c38a7ae121e61e9b8bca78c (diff) | |
Partially working, at least for metaprogramming.nom
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -37,6 +37,7 @@ debug_getinfo = debug.getinfo -- Maybe do some sort of lazy definitions of actions that defer until they're used in code -- Add a ((%x foo %y) where {x:"asdf", y:"fdsa"}) compile-time action for substitution -- Allow plain text backslash like: "\n" in longstrings without requiring "\\n" +-- Maybe support some kind of regex action definitions like "foo %first (and %next)*"? export FILE_CACHE FILE_CACHE = setmetatable {}, { @@ -892,7 +893,7 @@ if arg and debug_getinfo(2).func != require return line_table } - debug.getinfo = (thread,f,what)-> + debug.getinfoXXXXXX = (thread,f,what)-> if what == nil f,what,thread = thread,f,nil if type(f) == 'number' then f += 1 -- Account for this wrapper function |
