From bf37295faeb9535c56671f4b2050260e1b88cd32 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 Jan 2019 15:53:31 -0800 Subject: Updating to v6.15, which includes "external (...)" instead of separate 'externally' versions of stuff, and some auto-formatting. --- nomsu_decompiler.moon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nomsu_decompiler.moon') diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 5b35b9a..b88a766 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -147,7 +147,7 @@ tree_to_inline_nomsu = (tree)-> target = tree[1] target_nomsu = tree_to_inline_nomsu(target) switch target.type - when "Action", "MethodCall" + when "Action", "MethodCall", "EscapedNomsu" target_nomsu\parenthesize! when "Number" target_nomsu\parenthesize! if target_nomsu\text!\match("%.") @@ -381,9 +381,9 @@ tree_to_nomsu = (tree)-> while #line > 0 space = max_line - nomsu\trailing_line_len! split = find(line, "[%p%s]", space) - if not split or split > space + 10 - split = space + 10 - if #line - split < 10 + if not split or split > space + 16 + split = space + 16 + if #line - split < 16 split = #line bite, line = sub(line, 1, split), sub(line, split+1, -1) nomsu\add bite -- cgit v1.2.3