diff options
-rw-r--r-- | script/parser/luadoc.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 56da32f2..1645487d 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1250,8 +1250,16 @@ local function bindDocsBetween(sources, binded, bindSources, start, finish) break end if src.start >= start then - src.bindDocs = binded - bindSources[#bindSources+1] = src + if src.type == 'local' + or src.type == 'setglobal' + or src.type == 'tablefield' + or src.type == 'tableindex' + or src.type == 'setfield' + or src.type == 'setindex' + or src.type == 'function' then + src.bindDocs = binded + bindSources[#bindSources+1] = src + end end end end |