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.lua | |
| 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.lua')
| -rw-r--r-- | nomsu_decompiler.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index 98e93c8..9224f25 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -193,7 +193,7 @@ tree_to_inline_nomsu = function(tree) local target = tree[1] local target_nomsu = tree_to_inline_nomsu(target) local _exp_1 = target.type - if "Action" == _exp_1 or "MethodCall" == _exp_1 then + if "Action" == _exp_1 or "MethodCall" == _exp_1 or "EscapedNomsu" == _exp_1 then target_nomsu:parenthesize() elseif "Number" == _exp_1 then if target_nomsu:text():match("%.") then @@ -498,10 +498,10 @@ tree_to_nomsu = function(tree) while #line > 0 do local space = max_line - nomsu:trailing_line_len() local split = find(line, "[%p%s]", space) - if not split or split > space + 10 then - split = space + 10 + if not split or split > space + 16 then + split = space + 16 end - if #line - split < 10 then + if #line - split < 16 then split = #line end local bite |
