diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-02 15:59:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-02 15:59:52 +0800 |
commit | f2e5c8f364d72331e6f1410ac084f73b50c51a8e (patch) | |
tree | 9a33b8c8cd127be4a268f12080157b124b95be03 /script/core/hover/description.lua | |
parent | ff4513f65d5c09fb84544263a6a90aa7b8197a4e (diff) | |
download | lua-language-server-f2e5c8f364d72331e6f1410ac084f73b50c51a8e.zip |
update
Diffstat (limited to 'script/core/hover/description.lua')
-rw-r--r-- | script/core/hover/description.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua index 327ddbe1..bcc3065a 100644 --- a/script/core/hover/description.lua +++ b/script/core/hover/description.lua @@ -225,13 +225,14 @@ local function getBindEnums(source, docGroup) end local function tryDocFieldUpComment(source) - if source.type ~= 'doc.field' then + if source.type ~= 'doc.field.name' then return end - if not source.bindGroup then + local docField = source.parent + if not docField.bindGroup then return end - local comment = getBindComment(source, source.bindGroup, source) + local comment = getBindComment(docField, docField.bindGroup, docField) return comment end |