aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu_compiler.lua2
-rw-r--r--nomsu_compiler.moon3
2 files changed, 2 insertions, 3 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 1052c06..c77355a 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -1002,7 +1002,7 @@ do
end
local indented = self:tree_to_nomsu(t, pop_comments, space)
if t.type == "Action" and not (tree.type == "Block" or tree.type == "FileChunks") then
- indented:prepend("(..)\n ", pop_comments(t.source.start))
+ indented = NomsuCode(t.source, "(..)\n ", pop_comments(t.source.start), indented)
end
return indented
end
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index 5deb7a5..d617446 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -636,8 +636,7 @@ with NomsuCompiler
return inline if inline and #tostring(inline) <= space
indented = @tree_to_nomsu(t, pop_comments, space)
if t.type == "Action" and not (tree.type == "Block" or tree.type == "FileChunks")
- indented\prepend("(..)\n ", pop_comments(t.source.start))
- --return inline if inline and #tostring(indented) <= #tostring(inline) + 10
+ indented = NomsuCode(t.source, "(..)\n ", pop_comments(t.source.start), indented)
return indented
switch tree.type