diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:36:15 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:37:22 -0800 |
| commit | 7d2b7199d87930096b7fd799709fe0105d51eccb (patch) | |
| tree | f33de61cb44357497758bb08ec6993753d8baa43 /lib/consolecolor.nom | |
| parent | ba96cdfa07cea15ada62f8f89b2563de1286a0de (diff) | |
Lots of cleanups, including expanded use of (... compiles to "text
literal") shorthand, deprecating Lua value, and more use of Lua "..."
with text interpolations.
Diffstat (limited to 'lib/consolecolor.nom')
| -rw-r--r-- | lib/consolecolor.nom | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom index 4b231a9..d8b078f 100644 --- a/lib/consolecolor.nom +++ b/lib/consolecolor.nom @@ -15,9 +15,9 @@ test: for %name = %colornum in %colors: %colornum = "\%colornum" #(=lua "COMPILE_ACTIONS").%name = (..) - [%nomsu, %tree] -> (Lua value "'\\027[\(%colornum)m'") + [%nomsu, %tree] -> (Lua "'\\027[\(%colornum)m'") %compile.action.%name = (..) [%nomsu, %tree, %text] ->: if %text: - return (Lua value "('\\027[\(%colornum)m'..\(%text as lua expr)..'\\027[0m')") - ..else: return (Lua value "'\\027[\(%colornum)m'") + return (Lua "('\\027[\(%colornum)m'..\(%text as lua expr)..'\\027[0m')") + ..else: return (Lua "'\\027[\(%colornum)m'") |
