diff options
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index e10ef356..89a5ee9b 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1235,7 +1235,6 @@ local docSwitch = util.switch() start = getFinish(), finish = getFinish(), } - result.casts[#result.casts+1] = block if checkToken('symbol', '+', 1) then block.mode = '+' nextToken() @@ -1261,6 +1260,10 @@ local docSwitch = util.switch() end end + if block.optional or block.extends then + result.casts[#result.casts+1] = block + end + if checkToken('symbol', ',', 1) then nextToken() else |