summaryrefslogtreecommitdiff
path: root/server/src/matcher
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher')
-rw-r--r--server/src/matcher/hover.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index b4430b02..b997e8f8 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -145,6 +145,11 @@ local function buildValueName(result, source)
end
local parentName = declarat.parentName
+
+ if not parentName then
+ return result.key or ''
+ end
+
if parentName == '?' then
local parentType = result.parentValue and result.parentValue.type
if parentType == 'table' then