aboutsummaryrefslogtreecommitdiff
path: root/core/text.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-04-09 18:58:05 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-04-09 18:58:27 -0700
commitd42d20c50ae0443e2ac5ffa6492ad57745e27830 (patch)
tree78585c98ee8f4a3c88179c0d6b38b7f4015571ad /core/text.nom
parent86925c5b3a2c38ff47eb1764b04394b7d25cd13d (diff)
Re-added callstack callsite info. It's a bit hacky, but better than
nothing.
Diffstat (limited to 'core/text.nom')
-rw-r--r--core/text.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/text.nom b/core/text.nom
index 8213988..b3a2b6a 100644
--- a/core/text.nom
+++ b/core/text.nom
@@ -32,7 +32,7 @@ lua> ".."
};
for name, e in pairs(escapes) do
local lua = "'"..e.."'";
- nomsu:define_compile_action(name, \(!! code location !!), function() return {expr=lua}; end);
+ nomsu:define_compile_action(name, \(!! code location !!), function(__callsite) return {expr=lua}; end);
end
local colors = {
["reset color"]="\\\\27[0m", bright="\\\\27[1m", dim="\\\\27[2m", underscore="\\\\27[4m",
@@ -47,8 +47,8 @@ lua> ".."
for name, c in pairs(colors) do
local color = "'"..c.."'";
local reset = "'"..colors["reset color"].."'";
- nomsu:define_compile_action(name, \(!! code location !!), function() return {expr=color}; end);
- nomsu:define_compile_action(name.." %", \(!! code location !!), function(\%)
+ nomsu:define_compile_action(name, \(!! code location !!), function(__callsite) return {expr=color}; end);
+ nomsu:define_compile_action(name.." %", \(!! code location !!), function(__callsite, \%)
return {expr=color..".."..nomsu:tree_to_lua(\%).expr..".."..reset};
end);
end