diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-14 16:22:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-14 16:22:09 +0800 |
commit | 840054f13235d2e24a9ff90edc64c0325331818c (patch) | |
tree | 44826a694638c3ba2d6bc38a8a5dbd722d9a71ec /script/vm/node.lua | |
parent | 72d3060bc60847d47d17fab4ff1b65bf0c3a1b8e (diff) | |
download | lua-language-server-840054f13235d2e24a9ff90edc64c0325331818c.zip |
update runner
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r-- | script/vm/node.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua index 7964c442..76e61192 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -216,6 +216,14 @@ function mt:removeNode(node) for _, c in ipairs(node) do if c.type == 'global' and c.cate == 'type' then self:remove(c.name) + elseif c.type == 'nil' then + self:remove 'nil' + elseif c.type == 'boolean' then + if c[1] == true then + self:remove 'true' + else + self:remove 'false' + end end end end |