summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-23 02:57:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-23 02:57:13 +0800
commit838ce36fdd7abdff0b4cab5e67c2500325178805 (patch)
treebffd74f604cbcf666ca5d41d1c9f5750e48e1db9 /script/parser/luadoc.lua
parent0ff98557a45c25d7a49520e57f49561a62300f35 (diff)
downloadlua-language-server-838ce36fdd7abdff0b4cab5e67c2500325178805.zip
update
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 94be437f..847b7d37 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -159,6 +159,8 @@ local function peekToken()
return TokenTypes[Ci+1], TokenContents[Ci+1]
end
+---@return string tokenType
+---@return string tokenContent
local function nextToken()
Ci = Ci + 1
if not TokenTypes[Ci] then
@@ -181,6 +183,7 @@ local function getStart()
return TokenStarts[Ci] + Offset
end
+---@return integer
local function getFinish()
if Ci == 0 then
return Offset