diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-10-30 20:32:14 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-10-30 20:32:49 -0700 |
| commit | e7e84c9eda38c930f5475301de4a449dcf59e8b6 (patch) | |
| tree | b0d3890516170ca5aee0269aace10121b97a7593 /nomsu_compiler.lua | |
| parent | fdf7a537c8ae13fc7ccb32278e5e364a52005443 (diff) | |
Fix for compiler not parenthesizing method targets, fix for parser not
recognizing \ line continuation, and improvements to
upgrade tool API.
Diffstat (limited to 'nomsu_compiler.lua')
| -rw-r--r-- | nomsu_compiler.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index 7aa117c..f9ba314 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -1005,7 +1005,11 @@ do elseif "Action" == _exp_0 then local nomsu = NomsuCode(tree.source) if tree.target then - nomsu:append(self:tree_to_inline_nomsu(tree.target), "::") + local inline_target = self:tree_to_inline_nomsu(tree.target) + if tree.target.type == "Action" then + inline_target:parenthesize() + end + nomsu:append(inline_target, "::") end for i, bit in ipairs(tree) do if type(bit) == "string" then |
