summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-23 17:02:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-23 17:02:40 +0800
commitf9157be94e64051e319d0f44e00995376fdb7598 (patch)
treef2a9f46d6d31d80dff6a415ab2d3a9826805da08 /script
parent5eb82d50202af355ecb5ce3edccb5ac77a4a6e85 (diff)
downloadlua-language-server-f9157be94e64051e319d0f44e00995376fdb7598.zip
fix #568
Diffstat (limited to 'script')
-rw-r--r--script/parser/luadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 335c8f24..3bb1b06e 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1123,7 +1123,7 @@ local function bindDocsBetween(sources, binded, bindSources, start, finish)
-- 从前往后进行绑定
for i = index, max do
local src = sources[i]
- if src then
+ if src and src.start >= start then
if src.start > finish then
break
end