summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-05 15:41:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-05 15:41:15 +0800
commita00de14e61b02e3b015fe33f8c01b748113bf4ce (patch)
treef9ea61699771833142bb44760a76ea458eebfd7d /script/parser/luadoc.lua
parentc0ee6e9d999918bc7599625feddbff6ba005c270 (diff)
downloadlua-language-server-a00de14e61b02e3b015fe33f8c01b748113bf4ce.zip
#1280 `doc.diagnostic` don't break docs
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index dbfc6493..2e0125c5 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1450,6 +1450,9 @@ local function isContinuedDoc(lastDoc, nextDoc)
if not nextDoc then
return false
end
+ if nextDoc.type == 'doc.diagnostic' then
+ return true
+ end
if lastDoc.type == 'doc.type'
or lastDoc.type == 'doc.module' then
return false