Skip to content

Commit cd6b80d

Browse files
committed
split doc.class and doc.type
1 parent 7538419 commit cd6b80d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

script/parser/luadoc.lua

+10
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,16 @@ local function isNextLine(binded, doc)
13101310
return false
13111311
end
13121312
local lastDoc = binded[#binded]
1313+
if lastDoc.type == 'doc.type' then
1314+
return false
1315+
end
1316+
if lastDoc.type == 'doc.class'
1317+
or lastDoc.type == 'doc.field' then
1318+
if doc.type ~= 'doc.field'
1319+
and doc.type ~= 'doc.comment' then
1320+
return false
1321+
end
1322+
end
13131323
local lastRow = guide.rowColOf(lastDoc.finish)
13141324
local newRow = guide.rowColOf(doc.start)
13151325
return newRow - lastRow == 1

0 commit comments

Comments
 (0)