aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-23 14:40:20 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-23 14:41:30 -0700
commit470a6fe7f987f7c5e5c1fa7b6b31956479ababed (patch)
tree8c25a3ae22740bfd14ecf460bfdc7d732023610f /nomsu_compiler.moon
parent0d7bb7eb038d7fb986bb879112d599b2c517889c (diff)
Fixed blocks starting with extra newline when they start with a comment.
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 5790188..2856ff2 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -698,7 +698,7 @@ with NomsuCompiler
when "Block"
nomsu = NomsuCode(tree.source, pop_comments(tree.source.start))
for i, line in ipairs tree
- nomsu\append pop_comments(line.source.start, '\n')
+ nomsu\append pop_comments(line.source.start, i > 1 and '\n' or '')
line_nomsu = recurse(line)
nomsu\append line_nomsu
if i < #tree