summaryrefslogtreecommitdiff
path: root/script/vm/value.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-01 00:38:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-01 00:38:06 +0800
commit9baa655e26a4091bb9a34457a98a6c3bb8da5c77 (patch)
tree4a4532fffbccda94363c30e1bea3bae44d2ddad9 /script/vm/value.lua
parent25a1c462dfcba4a308de325396aece29a6c7198d (diff)
downloadlua-language-server-9baa655e26a4091bb9a34457a98a6c3bb8da5c77.zip
fix #1107
Diffstat (limited to 'script/vm/value.lua')
-rw-r--r--script/vm/value.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/vm/value.lua b/script/vm/value.lua
index aa314875..d29ca9d0 100644
--- a/script/vm/value.lua
+++ b/script/vm/value.lua
@@ -20,6 +20,15 @@ function vm.test(source)
hasFalse = true
end
end
+ if n.type == 'global' and n.cate == 'type' then
+ if n.name == 'true' then
+ hasTrue = true
+ end
+ if n.name == 'false'
+ or n.name == 'nil' then
+ hasFalse = true
+ end
+ end
if n.type == 'nil' then
hasFalse = true
end