diff options
Diffstat (limited to 'tools/love-api.lua')
-rw-r--r-- | tools/love-api.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/love-api.lua b/tools/love-api.lua index 8117970f..32ded033 100644 --- a/tools/love-api.lua +++ b/tools/love-api.lua @@ -131,8 +131,9 @@ local function buildFunction(func, node) for _, param in ipairs(func.variants[1].arguments or {}) do for paramName in param.name:gmatch '[%a_][%w_]*' do params[#params+1] = paramName - text[#text+1] = ('---@param %s %s # %s'):format( + text[#text+1] = ('---@param %s%s %s # %s'):format( paramName, + param.default == nil and '' or '?', buildType(param), param.description ) |