summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-22 15:45:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-22 15:45:24 +0800
commit4d153059e680f1f51a97bf5269cde11d4d007e22 (patch)
tree160e0dcabd2be4ba01296a4f87ad1d6e2f9f4ae5 /script/core
parent23055f5a6c0fc6a6d7f13ba9e635dde03b96c92f (diff)
downloadlua-language-server-4d153059e680f1f51a97bf5269cde11d4d007e22.zip
make docs
Diffstat (limited to 'script/core')
-rw-r--r--script/core/hover/description.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index e11dd6c8..74720bdf 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -351,6 +351,9 @@ end
local function tryDocComment(source)
local md = markdown()
+ if source.value and source.value.type == 'function' then
+ source = source.value
+ end
if source.type == 'function' then
local comment = getFunctionComment(source)
md:add('md', comment)