diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-26 10:24:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-26 10:24:09 +0800 |
commit | 5c9c05ef68f781d95a967aa42c66696121df14fe (patch) | |
tree | a4665fbe1287f54e6abac06e1afe4043095fb28e /script/parser | |
parent | 85ff98421d8b5011ed084c2b45ba47843e20f3e9 (diff) | |
download | lua-language-server-5c9c05ef68f781d95a967aa42c66696121df14fe.zip |
fix #73 doc.class inheritance
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 8a852109..7ca3ddd0 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -1554,6 +1554,16 @@ function m.checkSameSimpleByDoc(status, obj, start, queue, mode) force = true, } end + if obj.extends then + local pieceResult = stepRefOfDocType(status, obj.extends, 'def') + for _, res in ipairs(pieceResult) do + queue[#queue+1] = { + obj = res, + start = start, + force = true, + } + end + end end return true elseif obj.type == 'doc.type' then |