summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index bbfd3ab4..22a2df1b 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1367,6 +1367,7 @@ local function bindDocsBetween(sources, binded, bindSources, start, finish)
end
if src.start >= start then
if src.type == 'local'
+ or src.type == 'self'
or src.type == 'setglobal'
or src.type == 'tablefield'
or src.type == 'tableindex'
@@ -1437,7 +1438,7 @@ end
local bindDocAccept = {
'local' , 'setlocal' , 'setglobal',
'setfield' , 'setmethod' , 'setindex' ,
- 'tablefield', 'tableindex',
+ 'tablefield', 'tableindex', 'self' ,
'function' , 'table' , '...' ,
}