aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
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.lua
parent0d7bb7eb038d7fb986bb879112d599b2c517889c (diff)
Fixed blocks starting with extra newline when they start with a comment.
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index daf7c5f..0299156 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -1104,7 +1104,7 @@ do
elseif "Block" == _exp_0 then
local nomsu = NomsuCode(tree.source, pop_comments(tree.source.start))
for i, line in ipairs(tree) do
- nomsu:append(pop_comments(line.source.start, '\n'))
+ nomsu:append(pop_comments(line.source.start, i > 1 and '\n' or ''))
local line_nomsu = recurse(line)
nomsu:append(line_nomsu)
if i < #tree then