summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-18 20:53:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-18 20:53:50 +0800
commitc4d19c9e4019d9753259edaefd14f920885c306f (patch)
treebf648fb3f94b119f8c929853384d4b236a9785a5
parent6379c0f9d7a63f53508aecc6260677c3a2751957 (diff)
downloadlua-language-server-c4d19c9e4019d9753259edaefd14f920885c306f.zip
整理一下
-rw-r--r--script-beta/core/hover/table.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua
index ca9ade14..0e0fe70f 100644
--- a/script-beta/core/hover/table.lua
+++ b/script-beta/core/hover/table.lua
@@ -118,15 +118,14 @@ local function clearClasses(classes)
local anyClasses = {}
local strClasses = {}
for key, class in pairs(classes) do
- if key:sub(1, 1) ~= '[' then
- util.array2hash(class, knownClasses)
- elseif key == '[any]' then
+ if key == '[any]' then
util.array2hash(class, anyClasses)
goto CONTINUE
elseif key == '[string]' then
util.array2hash(class, strClasses)
goto CONTINUE
end
+ util.array2hash(class, knownClasses)
::CONTINUE::
end
for c in pairs(knownClasses) do