Skip to content

Commit

Permalink
Merge pull request #2537 from AndreasMatthias/varargs
Browse files Browse the repository at this point in the history
Desc/rawdesc for vararg expressions in JSON output.
  • Loading branch information
sumneko authored Feb 26, 2024
2 parents 5427b3b + a3c731f commit 306a586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/core/hover/description.lua
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ local function tyrDocParamComment(source)
or source.type == 'getlocal' then
source = source.node
end
if source.type ~= 'local' then
if source.type ~= 'local'
and source.type ~= '...' then
return
end
if source.parent.type ~= 'funcargs' then
Expand Down

0 comments on commit 306a586

Please sign in to comment.