diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/parser/luadoc.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index ea6d7654..4393e23d 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1697,7 +1697,15 @@ local function bindDoc(source, binded) if not source.bindDocs then source.bindDocs = {} end - source.bindDocs[#source.bindDocs+1] = doc + source.bindDocs[#source.bindDocs + 1] = doc + if source.args then + for _, arg in ipairs(source.args) do + if arg[1] == doc.param[1] then + bindDocWithSource(doc, arg) + break + end + end + end end elseif doc.type == 'doc.vararg' then if source.type == '...' then |