diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-26 15:03:07 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-26 15:03:15 -0800 |
| commit | 95f3f55ff2598cd3f00baa3317ebd98ce252f0be (patch) | |
| tree | 230f9cbebb934ad0acfed5c4a13cf6f5183e6a04 /nomsu.moon | |
| parent | 214b3f91866a3f7703c2def4242377c0a0cb39b7 (diff) | |
Cleaned up unnecessary buffer use.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 = {} |
