aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon8
1 files changed, 4 insertions, 4 deletions
diff --git a/nomsu.moon b/nomsu.moon
index f64b3c9..3523a7a 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -773,13 +773,13 @@ class NomsuCompiler
return nil
print_tree: (tree)=>
- buff = colors.bright..colors.green
+ io.write(colors.bright..colors.green)
for node,depth in coroutine.wrap(-> @walk_tree tree)
if type(node) != 'table' or not node.type
- buff += ((" ")\rep(depth)..repr(node)).."\n"
+ print((" ")\rep(depth)..repr(node))
else
- buff += ("#{(" ")\rep(depth)}#{node.type}:").."\n"
- print(buff..colors.reset)
+ print("#{(" ")\rep(depth)}#{node.type}:")
+ io.write(colors.reset)
tree_to_str: (tree)=>
bits = {}