diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 16:15:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 16:15:46 +0800 |
commit | d92837f7ddcd2e4da3148e6ceba6aded46d6edfd (patch) | |
tree | 6036cc41fb861f9f1a9b85ec637d55f072480b22 /script-beta/parser | |
parent | 9a69e16a4664b4deee3693d53a74336615700a6d (diff) | |
download | lua-language-server-d92837f7ddcd2e4da3148e6ceba6aded46d6edfd.zip |
doc.param 的自动完成
Diffstat (limited to 'script-beta/parser')
-rw-r--r-- | script-beta/parser/luadoc.lua | 5 |
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 |