From 6f6c4377b236902566794c3d06820f3fdd7ec28c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 16 May 2018 18:12:56 -0700 Subject: Initial working version. --- core/text.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/text.nom') diff --git a/core/text.nom b/core/text.nom index e1aaa9d..7b945cd 100644 --- a/core/text.nom +++ b/core/text.nom @@ -27,7 +27,7 @@ lua> ".." }; for name, e in pairs(escapes) do local lua = "'"..e.."'"; - nomsu:define_compile_action(name, function(tree) return Lua.Value(tree.source, lua); end); + nomsu:define_compile_action(name, function(tree) return Lua.Value(nil, lua); end); end local colors = { ["reset color"]="\\\\27[0m", bright="\\\\27[1m", dim="\\\\27[2m", underscore="\\\\27[4m", @@ -42,9 +42,9 @@ lua> ".." for name, c in pairs(colors) do local color = "'"..c.."'"; local reset = "'"..colors["reset color"].."'"; - nomsu:define_compile_action(name, function(tree) return Lua.Value(tree.source, color); end); + nomsu:define_compile_action(name, function(tree) return Lua.Value(nil, color); end); nomsu:define_compile_action(name.." %", function(\%) - return Lua.Value(tree.source, color, "..", \%:as_lua(nomsu), "..", reset); + return Lua.Value(nil, color, "..", \%:as_lua(nomsu), "..", reset); end); end end -- cgit v1.2.3