diff options
Diffstat (limited to 'script-beta/core/hover/name.lua')
-rw-r--r-- | script-beta/core/hover/name.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/script-beta/core/hover/name.lua b/script-beta/core/hover/name.lua index e5bd6f66..ee8b3961 100644 --- a/script-beta/core/hover/name.lua +++ b/script-beta/core/hover/name.lua @@ -84,6 +84,10 @@ local function asDocFunction(source) return '' end +local function asDocField(source) + return source.field[1] +end + function buildName(source, oop) if oop == nil then oop = source.type == 'setmethod' @@ -117,6 +121,9 @@ function buildName(source, oop) if source.type == 'doc.type.function' then return asDocFunction(source) end + if source.type == 'doc.field' then + return asDocField(source) + end local parent = source.parent if parent then return buildName(parent, oop) |