diff options
Diffstat (limited to 'tools/love-api.lua')
-rw-r--r-- | tools/love-api.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/love-api.lua b/tools/love-api.lua index 31284cd6..74866962 100644 --- a/tools/love-api.lua +++ b/tools/love-api.lua @@ -167,6 +167,14 @@ local function buildFunction(func, node, typeName) param.description ) end + + if param.name == "..." then + params[#params+1] = param.name + text[#text+1] = ('---@vararg %s # %s'):format( + buildType(param), + param.description + ) + end end for _, rtn in ipairs(func.variants[1].returns or {}) do for returnName in rtn.name:gmatch '[%a_][%w_]*' do |