From a00de14e61b02e3b015fe33f8c01b748113bf4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 5 Jul 2022 15:41:15 +0800 Subject: #1280 `doc.diagnostic` don't break docs --- script/parser/luadoc.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/parser/luadoc.lua') 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 -- cgit v1.2.3