diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 21:06:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 21:06:53 +0800 |
commit | 08b9dd387a9b912c68749018b7dfe3c1df7094d5 (patch) | |
tree | 46c81598c214b10643f3d8083bb7b64b9e2ba21c /script/vm/node.lua | |
parent | 9ad317f2a1eb8dc5715103c8c62e0fcff88a482b (diff) | |
download | lua-language-server-08b9dd387a9b912c68749018b7dfe3c1df7094d5.zip |
cleanup
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r-- | script/vm/node.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua index 6f0554f0..3b6e9afb 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -62,7 +62,7 @@ function mt:clear() end ---@param n integer ----@return vm.object? +---@return vm.node.object? function mt:get(n) return self[n] end @@ -284,7 +284,8 @@ function mt:removeNode(node) self:remove(c.name) elseif c.type == 'nil' then self:remove 'nil' - elseif c.type == 'boolean' then + elseif c.type == 'boolean' + or c.type == 'doc.type.boolean' then if c[1] == true then self:remove 'true' else |