From b38d9e0062bf0902241dce182c3389a0c5853c40 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 14 Dec 2018 17:55:08 -0800 Subject: Fix for nomsu codegen for methods. --- nomsu_decompiler.lua | 1 + nomsu_decompiler.moon | 1 + 2 files changed, 2 insertions(+) diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index 7882596..418ba96 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -340,6 +340,7 @@ tree_to_nomsu = function(tree) end nomsu:add(target_nomsu) nomsu:add(target_nomsu:is_multiline() and " \\\n..|" or "|") + nomsu:add(recurse(tree[2])) return nomsu elseif "EscapedNomsu" == _exp_0 then nomsu = recurse(tree[1]) diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 18f01cc..5920e18 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -265,6 +265,7 @@ tree_to_nomsu = (tree)-> target_nomsu\parenthesize! nomsu\add target_nomsu nomsu\add(target_nomsu\is_multiline! and " \\\n..|" or "|") + nomsu\add recurse(tree[2]) return nomsu when "EscapedNomsu" -- cgit v1.2.3