diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-18 20:53:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-18 20:53:50 +0800 |
commit | c4d19c9e4019d9753259edaefd14f920885c306f (patch) | |
tree | bf648fb3f94b119f8c929853384d4b236a9785a5 | |
parent | 6379c0f9d7a63f53508aecc6260677c3a2751957 (diff) | |
download | lua-language-server-c4d19c9e4019d9753259edaefd14f920885c306f.zip |
整理一下
-rw-r--r-- | script-beta/core/hover/table.lua | 5 |
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 |