From 6f3d539072512feb34d9d759f8b2adb09733fbdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 19 Apr 2022 23:54:02 +0800 Subject: update runner --- script/parser/luadoc.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script/parser') diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 7c669d1f..d329985f 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -709,6 +709,10 @@ function parseType(parent) if not result.start then result.start = getFinish() end + if checkToken('symbol', '?', 1) then + nextToken() + result.optional = true + end result.finish = getFinish() result.firstFinish = result.finish -- cgit v1.2.3