diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-15 15:53:31 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-15 15:54:28 -0800 |
| commit | bf37295faeb9535c56671f4b2050260e1b88cd32 (patch) | |
| tree | d544b68bca8c5bdf0926cc20a12f925c1761cfda /nomsu_decompiler.moon | |
| parent | ef70abe4b7ed8d04574ab24ea4fd74fe2a64221f (diff) | |
Updating to v6.15, which includes "external (...)" instead of separate
'externally' versions of stuff, and some auto-formatting.
Diffstat (limited to 'nomsu_decompiler.moon')
| -rw-r--r-- | nomsu_decompiler.moon | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
