summaryrefslogtreecommitdiff
path: root/script/core/hover
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover')
-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)