From 26d0de8299c7568152f479320444833b4d30d0eb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 17 Apr 2018 14:36:44 -0700 Subject: Partially working, at least for metaprogramming.nom --- nomsu.moon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nomsu.moon') 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 -- cgit v1.2.3