diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-25 23:47:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-25 23:47:55 +0800 |
commit | 4529b3118d10a82ba2e0cfa201bc380067c18212 (patch) | |
tree | b35a0873230851d16c74678c4ad2d10d60f9cae3 /script/parser/luadoc.lua | |
parent | 24e213e8620508920d69406164c5a5ea30a97abb (diff) | |
download | lua-language-server-4529b3118d10a82ba2e0cfa201bc380067c18212.zip |
fix #1370
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index d13120b6..51161565 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1700,12 +1700,21 @@ local function bindDoc(source, binded) goto CONTINUE end elseif doc.type == 'doc.enum' then - if source.type ~= 'table' then - goto CONTINUE + if source.type == 'table' then + goto OK + end + if source.value and source.value.type == 'table' then + if not source.value.bindDocs then + source.value.bindDocs = {} + end + source.value.bindDocs[#source.value.bindDocs+1] = doc + doc.bindSource = source.value end + goto CONTINUE elseif doc.type ~= 'doc.comment' then goto CONTINUE end + ::OK:: if not source.bindDocs then source.bindDocs = {} end |