summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/parser/guide.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 53849a52..d510837a 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -2494,6 +2494,10 @@ function m.pushResult(status, mode, ref, simple)
or ref.type == 'doc.alias.name'
or ref.type == 'doc.field' then
results[#results+1] = ref
+ elseif ref.type == 'doc.type' then
+ if #ref.enums > 0 or #ref.resumes > 0 then
+ results[#results+1] = ref
+ end
end
if ref.parent and ref.parent.type == 'return' then
if m.getParentFunction(ref) ~= m.getParentFunction(simple.node) then
@@ -2537,6 +2541,10 @@ function m.pushResult(status, mode, ref, simple)
or ref.type == 'doc.alias.name'
or ref.type == 'doc.field' then
results[#results+1] = ref
+ elseif ref.type == 'doc.type' then
+ if #ref.enums > 0 or #ref.resumes > 0 then
+ results[#results+1] = ref
+ end
end
if ref.parent and ref.parent.type == 'return' then
results[#results+1] = ref