summaryrefslogtreecommitdiff
path: root/tools/lovr-api.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-01 21:03:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-01 21:03:23 +0800
commit58a62076ca0f8ce7441d2a42cfb8fe2fc7a75bbc (patch)
tree4446c67efaf2286f7130904aed95b70a93eb8c00 /tools/lovr-api.lua
parentdda6b1860cf9e2efbc6b06bad4a6174481c7e5d9 (diff)
downloadlua-language-server-58a62076ca0f8ce7441d2a42cfb8fe2fc7a75bbc.zip
update lovr
Diffstat (limited to 'tools/lovr-api.lua')
-rw-r--r--tools/lovr-api.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lovr-api.lua b/tools/lovr-api.lua
index c5d7f95f..36b29929 100644
--- a/tools/lovr-api.lua
+++ b/tools/lovr-api.lua
@@ -64,7 +64,10 @@ function buildType(param)
if param.table then
return buildDocTable(param.table)
end
- return getTypeName(param.type or param.name)
+ if param.type and param.type ~= '*' then
+ return getTypeName(param.type)
+ end
+ return 'any'
end
local function buildSuper(tp)