diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-09 19:14:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-09 19:14:57 +0800 |
commit | fc0a565b7bbc6b428d559e2981ae2719717ffb30 (patch) | |
tree | 9514907a573fe21d2e369dfd0acd1596da508bba /script-beta/parser/luadoc.lua | |
parent | 539622ccb8ac8bef1266ffcd5fbcdc1043d2a7cf (diff) | |
download | lua-language-server-fc0a565b7bbc6b428d559e2981ae2719717ffb30.zip |
泛型继承luadoc
Diffstat (limited to 'script-beta/parser/luadoc.lua')
-rw-r--r-- | script-beta/parser/luadoc.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/script-beta/parser/luadoc.lua b/script-beta/parser/luadoc.lua index f37e15f6..13d80874 100644 --- a/script-beta/parser/luadoc.lua +++ b/script-beta/parser/luadoc.lua @@ -567,15 +567,7 @@ local function parseGeneric() end if checkToken('symbol', ':', 1) then nextToken() - object.extends = parseName('doc.extends.name', object) - if not object.extends then - pushError { - type = 'LUADOC_MISS_GENERIC_EXTENDS_NAME', - start = getFinish(), - finish = getFinish(), - } - return nil - end + object.extends = parseType(object) end object.finish = getFinish() result.generics[#result.generics+1] = object |