diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-11 14:13:43 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-11 14:14:16 -0700 |
| commit | ba2b83d5669f9fcf6f49fcd2adac5997eb07f7d8 (patch) | |
| tree | 55d0ecaafd6c5c871bd987a28a2b61fca16b250c /lib/consolecolor.nom | |
| parent | b32634faf8eb0fe1448ca44ddf9b3a6bfaf20b68 (diff) | |
Fixed nomsu codegen for indented text and improved text parsing. Also
moved some more tests inline.
Diffstat (limited to 'lib/consolecolor.nom')
| -rw-r--r-- | lib/consolecolor.nom | 3 |
1 files changed, 2 insertions, 1 deletions
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") |
