summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-25 16:31:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-25 16:31:46 +0800
commit2d6a3b6875fe50854b3f8cdf5dd13bd2b342e3e8 (patch)
treee3fe1b09f1111ea5d62f7b96ea4ade36ee23bfe8 /script/vm
parent8f420030bf306d78583863356b13b716d30bebda (diff)
downloadlua-language-server-2d6a3b6875fe50854b3f8cdf5dd13bd2b342e3e8.zip
update
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/getDocs.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua
index 9df8d4d4..54ddbe02 100644
--- a/script/vm/getDocs.lua
+++ b/script/vm/getDocs.lua
@@ -73,14 +73,16 @@ local function getDocNames(name, type)
return results
end
-function vm.getDocEnums(doc, mark, results)
+function vm.getDocEnums(doc)
if not doc then
return nil
end
local defs = searcher.requestDefinition(doc)
+ local results = {}
for _, def in ipairs(defs) do
- if def.type == 'doc.type.enum' then
+ if def.type == 'doc.type.enum'
+ or def.type == 'doc.resume' then
results[#results+1] = def
end
end