From 04601c7da4a485d84be5e0b9864acf27f978c275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 10 Mar 2022 20:31:47 +0800 Subject: doc.type.integer --- script/parser/luadoc.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'script/parser') diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 810faa8c..ebbc8bcb 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -678,6 +678,16 @@ function parseType(parent) if not result.start then result.start = vararg.start end + elseif tp == 'integer' then + nextToken() + local integer = { + type = 'doc.type.integer', + start = getStart(), + finish = getFinish(), + parent = result, + [1] = content, + } + result.types[#result.types+1] = integer end if not checkToken('symbol', '|', 1) then break -- cgit v1.2.3