summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-05 19:12:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-05 19:12:20 +0800
commitb41c1e1f26804469d322312597f46ccb81ec0674 (patch)
treee288a05c30c41b9a2d95ab64a0f1bd98796658db /script/parser
parent2f53b27a582059ae990525042caed656f82a75c0 (diff)
downloadlua-language-server-b41c1e1f26804469d322312597f46ccb81ec0674.zip
close #144
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 437e37b0..022be26d 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -989,6 +989,9 @@ function m.getStepRef(status, obj, mode)
or obj.type == 'doc.alias.name' then
return stepRefOfDocType(status, obj, mode)
end
+ if obj.type == 'function' then
+ return { obj }
+ end
return nil
end