summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-19 17:47:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-19 17:47:46 +0800
commit636d43243a8ac23f785a434194d81c33ae3b35e9 (patch)
tree92539020c4ebdd8d6471cf0f6318de4f4071d838 /script
parent71244c2644abc5b4ecc9d3296f9bed99d4bee888 (diff)
downloadlua-language-server-636d43243a8ac23f785a434194d81c33ae3b35e9.zip
improve tail comments
Diffstat (limited to 'script')
-rw-r--r--script/core/hover/description.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 9b55223b..75c3ea9c 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -106,6 +106,12 @@ local function getBindComment(source, docGroup, base)
continue = false
end
end
+ if source.comment then
+ if not lines then
+ lines = {}
+ end
+ lines[#lines+1] = source.comment.text
+ end
if not lines or #lines == 0 then
return nil
end