From fc0a565b7bbc6b428d559e2981ae2719717ffb30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 9 Nov 2020 19:14:57 +0800 Subject: =?UTF-8?q?=E6=B3=9B=E5=9E=8B=E7=BB=A7=E6=89=BFluadoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/parser/luadoc.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'script-beta/parser') 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 -- cgit v1.2.3