aboutsummaryrefslogtreecommitdiff
path: root/lib/consolecolor.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 16:40:36 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 16:41:19 -0800
commit69aaea030e08e083151aa25b8080eddd0d4c1683 (patch)
tree6cd90a65e6828f60cc052c4a1b33a4a4c0d65570 /lib/consolecolor.nom
parenta2f07415c5284bf94c146cea6eed4a15f171b9ab (diff)
No longer passing `tree` to every compile action. Now, you can just
return a LuaCode object, and it will automatically get a source from `tree` if it didn't already have a source. Plus some fixes/cleanup.
Diffstat (limited to 'lib/consolecolor.nom')
-rw-r--r--lib/consolecolor.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom
index d8b078f..1016c0b 100644
--- a/lib/consolecolor.nom
+++ b/lib/consolecolor.nom
@@ -17,7 +17,7 @@ for %name = %colornum in %colors:
#(=lua "COMPILE_ACTIONS").%name = (..)
[%nomsu, %tree] -> (Lua "'\\027[\(%colornum)m'")
%compile.action.%name = (..)
- [%nomsu, %tree, %text] ->:
+ [%nomsu, %text] ->:
if %text:
return (Lua "('\\027[\(%colornum)m'..\(%text as lua expr)..'\\027[0m')")
..else: return (Lua "'\\027[\(%colornum)m'")