summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndreas <andreas.matthias@gmail.com>2024-02-24 20:05:54 +0100
committerAndreas <andreas.matthias@gmail.com>2024-02-24 20:49:06 +0100
commita3c731f91e05a9efe658c3da6e7c905829d65b52 (patch)
tree6c5d7c46147ddb3a9701fdc6fc82a158fe46d394 /script
parent21d20b1522d2e76cb511b016d90dbd89d2acdcbc (diff)
downloadlua-language-server-a3c731f91e05a9efe658c3da6e7c905829d65b52.zip
Desc/rawdesc for vararg expressions in JSON output.
Diffstat (limited to 'script')
-rw-r--r--script/core/hover/description.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 75189b06..0cbcc835 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -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