aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon4
1 files changed, 3 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index cff64b0..5167e0b 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -15,7 +15,7 @@ re = require 're'
lpeg = require 'lpeg'
utils = require 'utils'
repr = utils.repr
-colors = require 'consolecolors'
+colors = setmetatable({}, {__index:->""})
colored = setmetatable({}, {__index:(_,color)-> ((msg)-> colors[color]..msg..colors.reset)})
{:insert, :remove, :concat} = table
--pcall = (fn,...)-> true, fn(...)
@@ -591,6 +591,8 @@ class NomsuCompiler
if arg
+ export colors
+ colors = require 'consolecolors'
parser = re.compile([[
args <- {| {:flags: flags? :} ({:input: input :} ";" ("-o;"{:output: output :} ";")?)? (";")? |} !.
flags <- (({| ({flag} ";")* |}) -> set)