Skip to content

Commit

Permalink
fix #1446
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Aug 12, 2022
1 parent c273b04 commit c62b62e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* `FIX` [#1428](https://github.com/sumneko/lua-language-server/issues/1428)
* `FIX` [#1430](https://github.com/sumneko/lua-language-server/issues/1430)
* `FIX` [#1431](https://github.com/sumneko/lua-language-server/issues/1431)
* `FIX` [#1446](https://github.com/sumneko/lua-language-server/issues/1446)

## 3.5.2
`2022-8-1`
Expand Down
10 changes: 9 additions & 1 deletion script/parser/luadoc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,15 @@ local function bindDoc(source, binded)
if not source.bindDocs then
source.bindDocs = {}
end
source.bindDocs[#source.bindDocs+1] = doc
source.bindDocs[#source.bindDocs + 1] = doc
if source.args then
for _, arg in ipairs(source.args) do
if arg[1] == doc.param[1] then
bindDocWithSource(doc, arg)
break
end
end
end
end
elseif doc.type == 'doc.vararg' then
if source.type == '...' then
Expand Down
1 change: 0 additions & 1 deletion test/hover/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,6 @@ function test2()
3. integer
]]

do return end
TEST [[
---@param x number
---@return boolean
Expand Down

0 comments on commit c62b62e

Please sign in to comment.