aboutsummaryrefslogtreecommitdiff
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
parentddc7b8e70cb375df4e0d3660056aef9286b2e02f (diff)
*actual* fix for the codegen for (do: if (yes) (: say "hi"); say "done")
example
-rw-r--r--nomsu_compiler.lua2
-rw-r--r--nomsu_compiler.moon2
2 files changed, 2 insertions, 2 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 16dbd88..652a5c8 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -824,7 +824,7 @@ do
return nil
end
if bit.type == "Block" then
- if i == 1 or i < #tree or (options.inside_multiblock and #bit > 1) then
+ if i == 1 or i < #tree or options.inside_multiblock then
if i > 1 then
nomsu:append(" ")
end
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