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.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 227808a0..c59bc5c1 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -2002,7 +2002,10 @@ local function bindDocs(state)
state.ast.docs.groups[#state.ast.docs.groups+1] = binded
end
binded[#binded+1] = doc
- if isTailComment(text, doc) then
+ if doc.specialBindGroup then
+ bindDocWithSources(sources, doc.specialBindGroup)
+ binded = nil
+ elseif isTailComment(text, doc) and doc.type ~= "doc.class" and doc.type ~= "doc.field" then
bindDocWithSources(sources, binded)
binded = nil
else
@@ -2130,7 +2133,7 @@ local function luadoc(state)
end
return {
- buildAndBindDoc = function (ast, src, comment)
+ buildAndBindDoc = function (ast, src, comment, group)
local doc = buildLuaDoc(comment)
if doc then
local pluginDocs = ast.state.pluginDocs or {}
@@ -2138,6 +2141,7 @@ return {
doc.special = src
doc.originalComment = comment
doc.virtual = true
+ doc.specialBindGroup = group
ast.state.pluginDocs = pluginDocs
return doc
end