From ba2b83d5669f9fcf6f49fcd2adac5997eb07f7d8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 11 Jul 2018 14:13:43 -0700 Subject: Fixed nomsu codegen for indented text and improved text parsing. Also moved some more tests inline. --- lib/consolecolor.nom | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/consolecolor.nom') diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom index 8184b59..8e3ca2f 100644 --- a/lib/consolecolor.nom +++ b/lib/consolecolor.nom @@ -1,5 +1,6 @@ use "core" +test: 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 @@ -14,4 +15,4 @@ for %name = %colornum in %colors compile [\%name] to: Lua value (quote \(quote %escapecode)) compile [\%name %text] to Lua value ".." - (\\(quote \(quote %escapecode))..\\(%text as lua expr)..\(quote "\27[0m")) + (\\(quote \(quote %escapecode))..\\(%text as lua expr).."\\27[0m") -- cgit v1.2.3