aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-19 17:00:38 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-19 17:01:11 -0700
commite5e47cb9eedc257aa94815380005fe16f2171f3f (patch)
treeed1a00bbdf6d53032389dc255c0d9f26741c175c /nomsu_compiler.moon
parentddc7b8e70cb375df4e0d3660056aef9286b2e02f (diff)
*actual* fix for the codegen for (do: if (yes) (: say "hi"); say "done")
example
Diffstat (limited to 'nomsu_compiler.moon')
-rw-r--r--nomsu_compiler.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index e4521f2..c92b996 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -534,7 +534,7 @@ with NomsuCompiler
arg_nomsu = recurse(bit,inline:true)
return nil unless arg_nomsu
if bit.type == "Block"
- if i == 1 or i < #tree or (options.inside_multiblock and #bit > 1)
+ if i == 1 or i < #tree or options.inside_multiblock
nomsu\append " " if i > 1
arg_nomsu\parenthesize!
nomsu\append arg_nomsu