diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 18:10:16 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 18:10:31 -0700 |
| commit | 8deb59b6a70420815aac949cc89f0dbf53fa6915 (patch) | |
| tree | 64b9bf3c324aa67f16fb51cb687bc58328424256 /nomsu_compiler.moon | |
| parent | 9cfabfd4359dbc85b88219bcc2d5f2f91008de93 (diff) | |
Fix for (..)-indented actions not handling newlines right.
Diffstat (limited to 'nomsu_compiler.moon')
| -rw-r--r-- | nomsu_compiler.moon | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
