aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-26 15:59:21 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-26 16:00:12 -0700
commitf6e9bdc1c021552b4c52d427a54cb71a4ff8e2ac (patch)
tree2b9ff5b624a522861b6f60caa95958dfa30ba29e /nomsu_compiler.lua
parente7c3455d4f24c76aa553cc56dbf57774c6fbdc41 (diff)
Fixed a bug where if an indented string interpolation was at the end of
an indented text, the nomsu codegen would fail to put a "\n.." after it, so it wouldn't parse as an iterpolation.
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 75c6040..486e3e6 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -1159,7 +1159,7 @@ do
end
end
nomsu:append(interp_nomsu)
- if interp_nomsu:is_multiline() and i < #tree then
+ if interp_nomsu:is_multiline() then
nomsu:append("\n..")
end
end