aboutsummaryrefslogtreecommitdiff
path: root/lib/consolecolor.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-08 15:23:22 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-08 15:24:15 -0800
commit652c29bdef1f0991cc13bef59d6dc78b657ae9a4 (patch)
tree8e335399e77b1893657b9fa985db0738034daac3 /lib/consolecolor.nom
parent1f3660f393c1a17988a15b89f18686b28e51a9e7 (diff)
Major overhaul, splitting nomsu_compiler into nomsu_environment,
nomsu_compiler, and nomsu_decompiler. Also added comprehensions.
Diffstat (limited to 'lib/consolecolor.nom')
-rw-r--r--lib/consolecolor.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom
index fe7da4c..4b231a9 100644
--- a/lib/consolecolor.nom
+++ b/lib/consolecolor.nom
@@ -3,7 +3,7 @@
This file defines actions for ANSI console color escape codes.
test:
- bright "\(green)Color test passed."
+ % = (bright "\(green)Color test passed.")
%colors = {..}
normal:0, "reset color":0, bright:1, bold:1, dim:2, italic:3, underscore:4
"slow blink":5, "fast blink":6, reverse:7, inverse:7, inverted:7, hidden:8
@@ -16,7 +16,7 @@ for %name = %colornum in %colors:
%colornum = "\%colornum"
#(=lua "COMPILE_ACTIONS").%name = (..)
[%nomsu, %tree] -> (Lua value "'\\027[\(%colornum)m'")
- (=lua "COMPILE_ACTIONS")."\%name" = (..)
+ %compile.action.%name = (..)
[%nomsu, %tree, %text] ->:
if %text:
return (Lua value "('\\027[\(%colornum)m'..\(%text as lua expr)..'\\027[0m')")