summaryrefslogtreecommitdiff
path: root/script/vm/getClass.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-04 13:14:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-04 13:14:57 +0800
commita85872115adb2a9d3ec0f14ddf0edb46016a4ea6 (patch)
tree975f4b42592a8b9a3c3df68c497d08f147e4d8e8 /script/vm/getClass.lua
parent923fcd8fe3e5ce1f140446482394eb2eb7261d8d (diff)
downloadlua-language-server-a85872115adb2a9d3ec0f14ddf0edb46016a4ea6.zip
Split getkeyname and getkeytype
Diffstat (limited to 'script/vm/getClass.lua')
-rw-r--r--script/vm/getClass.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/vm/getClass.lua b/script/vm/getClass.lua
index 7ac18e18..d95bab40 100644
--- a/script/vm/getClass.lua
+++ b/script/vm/getClass.lua
@@ -32,10 +32,10 @@ local function getClass(source, classes, depth, deep)
goto CONTINUE
end
local lkey = key:lower()
- if lkey == 's|type'
- or lkey == 's|__name'
- or lkey == 's|name'
- or lkey == 's|class' then
+ if lkey == 'type'
+ or lkey == '__name'
+ or lkey == 'name'
+ or lkey == 'class' then
local value = guide.getObjectValue(src)
if value and value.type == 'string' then
classes[#classes+1] = value[1]