From 652c29bdef1f0991cc13bef59d6dc78b657ae9a4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 8 Nov 2018 15:23:22 -0800 Subject: Major overhaul, splitting nomsu_compiler into nomsu_environment, nomsu_compiler, and nomsu_decompiler. Also added comprehensions. --- lib/consolecolor.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/consolecolor.nom') 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')") -- cgit v1.2.3