summaryrefslogtreecommitdiff
path: root/script-beta/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-21 15:48:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-21 15:48:14 +0800
commit44348b5716c8f1797c28655ef3973d55ab3244d6 (patch)
tree47ad41c87c213f3fd870e97680c2b948c42fbf79 /script-beta/parser
parent3b1bdeeb79d1f7d49df1002c436511fdf20a57ff (diff)
downloadlua-language-server-44348b5716c8f1797c28655ef3973d55ab3244d6.zip
alias 的定义
Diffstat (limited to 'script-beta/parser')
-rw-r--r--script-beta/parser/guide.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 7bcf3165..5b1587a6 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -946,7 +946,8 @@ local function stepRefOfDocType(status, obj, mode)
for i = 1, #docs do
local doc = docs[i]
if mode == 'def' then
- if doc.type == 'doc.class.name' then
+ if doc.type == 'doc.class.name'
+ or doc.type == 'doc.alias.name' then
results[#results+1] = doc
end
else