diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-19 17:47:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-19 17:47:46 +0800 |
commit | 636d43243a8ac23f785a434194d81c33ae3b35e9 (patch) | |
tree | 92539020c4ebdd8d6471cf0f6318de4f4071d838 /script | |
parent | 71244c2644abc5b4ecc9d3296f9bed99d4bee888 (diff) | |
download | lua-language-server-636d43243a8ac23f785a434194d81c33ae3b35e9.zip |
improve tail comments
Diffstat (limited to 'script')
-rw-r--r-- | script/core/hover/description.lua | 6 |
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 |