summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-19 23:54:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-19 23:54:02 +0800
commit6f3d539072512feb34d9d759f8b2adb09733fbdc (patch)
tree8b7e474fc691c664a742eacb1160a0e629f562bf /script/parser
parentc8a4a575caf8e1cc4a44b26dd824112e790782ac (diff)
downloadlua-language-server-6f3d539072512feb34d9d759f8b2adb09733fbdc.zip
update runner
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/luadoc.lua4
1 files changed, 4 insertions, 0 deletions
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