diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 18:25:16 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 18:25:23 -0800 |
| commit | a7adc8cbff9347606fc9c0e8d00d4af2b6b838f5 (patch) | |
| tree | 2bf1dd60ca75cc83f391db1d1d2474db0f334573 | |
| parent | 5b6095b805c4242ca05f75be3f37e8759010528a (diff) | |
Fixed multi-line methodcalls
| -rw-r--r-- | nomsu_decompiler.lua | 2 | ||||
| -rw-r--r-- | nomsu_decompiler.moon | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index 24a7b01..bfd78f9 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -339,7 +339,7 @@ tree_to_nomsu = function(tree) target_nomsu:parenthesize() end nomsu:add(target_nomsu) - nomsu:add(target_nomsu:is_multiline() and " \\\n..|" or "|") + nomsu:add(target_nomsu:is_multiline() and "\n..|" or "|") nomsu:add(tree_to_nomsu(tree[2])) return nomsu elseif "EscapedNomsu" == _exp_0 then diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 5fa0be5..cb031e0 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -264,7 +264,7 @@ tree_to_nomsu = (tree)-> if tree[1].type == "Block" and not target_nomsu\is_multiline! target_nomsu\parenthesize! nomsu\add target_nomsu - nomsu\add(target_nomsu\is_multiline! and " \\\n..|" or "|") + nomsu\add(target_nomsu\is_multiline! and "\n..|" or "|") nomsu\add tree_to_nomsu(tree[2]) return nomsu |
