aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_compiler.moon')
-rw-r--r--nomsu_compiler.moon5
1 files changed, 4 insertions, 1 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index 432a195..a86a9e7 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -755,9 +755,12 @@ with NomsuCompiler
next_space = target_nomsu\is_multiline! and "\n..::" or "::"
for i,bit in ipairs tree
- if next_space == "\n.." or (next_space == " " and nomsu\trailing_line_len! > MAX_LINE)
+ if next_space == "\n.."
nomsu\append "\n", pop_comments(pos), '..'
next_space = ""
+ elseif next_space == " " and nomsu\trailing_line_len! > MAX_LINE
+ nomsu\append " \\\n", pop_comments(pos), '..'
+ next_space = ""
if type(bit) == "string"
unless type(tree[i-1]) == 'string' and is_operator(tree[i-1]) != is_operator(bit)