summaryrefslogtreecommitdiff
path: root/script-beta/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-03 16:15:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-03 16:15:46 +0800
commitd92837f7ddcd2e4da3148e6ceba6aded46d6edfd (patch)
tree6036cc41fb861f9f1a9b85ec637d55f072480b22 /script-beta/parser
parent9a69e16a4664b4deee3693d53a74336615700a6d (diff)
downloadlua-language-server-d92837f7ddcd2e4da3148e6ceba6aded46d6edfd.zip
doc.param 的自动完成
Diffstat (limited to 'script-beta/parser')
-rw-r--r--script-beta/parser/luadoc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script-beta/parser/luadoc.lua b/script-beta/parser/luadoc.lua
index c6c9032a..fa768b81 100644
--- a/script-beta/parser/luadoc.lua
+++ b/script-beta/parser/luadoc.lua
@@ -451,7 +451,8 @@ local function parseParam()
}
return nil
end
- result.start = getStart()
+ result.start = result.param.start
+ result.finish = getFinish()
result.extends = parseType(result)
if checkToken('symbol', '?', 1) then
nextToken()
@@ -463,7 +464,7 @@ local function parseParam()
start = getFinish(),
finish = getFinish(),
}
- return nil
+ return result
end
result.finish = getFinish()
return result