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.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 1385d5ce..e8a6d2b3 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1517,7 +1517,9 @@ local function isContinuedDoc(lastDoc, nextDoc)
end
if lastDoc.type == 'doc.type'
or lastDoc.type == 'doc.module' then
- return false
+ if nextDoc.type ~= 'doc.comment' then
+ return false
+ end
end
if lastDoc.type == 'doc.class'
or lastDoc.type == 'doc.field'