aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-04-17 14:36:44 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-04-17 14:36:55 -0700
commit26d0de8299c7568152f479320444833b4d30d0eb (patch)
tree995feed96145619477a0b3547eb97e2f80521cdb /nomsu.moon
parent54fc7fc4404c02df2c38a7ae121e61e9b8bca78c (diff)
Partially working, at least for metaprogramming.nom
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon3
1 files changed, 2 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 21263ac..2f04817 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -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