summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-09 16:46:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-09 16:46:50 +0800
commitb778d586096ecfe40832ebf8fd3d795a3d4947dc (patch)
treeef9aae36afc3e48f650b4a2399ba8cae7c918619 /script/parser
parent91869bc5f447dc07ecc78695852e719c67af9b85 (diff)
downloadlua-language-server-b778d586096ecfe40832ebf8fd3d795a3d4947dc.zip
fix
Diffstat (limited to 'script/parser')
-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 e251aa3e..6a1e8fff 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1669,7 +1669,9 @@ local function bindDocWithSource(doc, source)
if not source.bindDocs then
source.bindDocs = {}
end
- source.bindDocs[#source.bindDocs+1] = doc
+ if source.bindDocs[#source.bindDocs] ~= doc then
+ source.bindDocs[#source.bindDocs+1] = doc
+ end
doc.bindSource = source
end