summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-24 17:11:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-24 17:11:43 +0800
commit74fbf75e54c11fae1a40e4fec0e68d10b3cdec96 (patch)
tree4a3672b3678c8d69d0bae516bd881290941b0bb5
parent97513b61fa54fb57195ea867a1fa7cc16d3a8ad3 (diff)
downloadlua-language-server-74fbf75e54c11fae1a40e4fec0e68d10b3cdec96.zip
use the nearest comment
-rw-r--r--script/core/hover/description.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 7d89ee6c..9f927531 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -82,8 +82,6 @@ local function getBindComment(docGroup, base)
for _, doc in ipairs(docGroup) do
if doc.type == 'doc.comment' then
lines[#lines+1] = doc.comment.text:sub(2)
- elseif #lines > 0 and not base then
- break
elseif doc == base then
break
else