diff options
Diffstat (limited to 'script-beta/parser')
-rw-r--r-- | script-beta/parser/guide.lua | 10 | ||||
-rw-r--r-- | script-beta/parser/luadoc.lua | 6 |
2 files changed, 12 insertions, 4 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index f4c226b8..ae71c15f 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -2766,10 +2766,12 @@ function m.getDocTypeNames(status, doc, genericCallback) } end for _, resume in ipairs(doc.resumes) do - results[#results+1] = { - type = resume[1], - source = resume, - } + if not resume.additional then + results[#results+1] = { + type = resume[1], + source = resume, + } + end end return results end diff --git a/script-beta/parser/luadoc.lua b/script-beta/parser/luadoc.lua index f88baa22..74acfaf2 100644 --- a/script-beta/parser/luadoc.lua +++ b/script-beta/parser/luadoc.lua @@ -54,6 +54,7 @@ Symbol <- ({} { / ')' / '?' / '...' + / '+' } {}) -> Symbol ]], { @@ -378,6 +379,11 @@ local function parseResume() result.default = true end + if checkToken('symbol', '+', 1) then + nextToken() + result.additional = true + end + local tp = peekToken() if tp ~= 'string' then pushError { |