diff options
Diffstat (limited to 'core/text.nom')
| -rw-r--r-- | core/text.nom | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
