summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-28 20:06:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-28 20:06:34 +0800
commit5b950742705515c4bc2502e8a902221f44bf644f (patch)
treef57ba3f1159eecfba3d882703b1b5775e0e72541 /script/parser/luadoc.lua
parentdeac4582d38908c1281d4d5215b7b69ff8400dca (diff)
downloadlua-language-server-5b950742705515c4bc2502e8a902221f44bf644f.zip
cleanup
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index c1a8d19c..af177223 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -5,7 +5,11 @@ local compile = require 'parser.compile'
local util = require 'utility'
local TokenTypes, TokenStarts, TokenFinishs, TokenContents, TokenMarks
-local Ci, Offset, pushWarning, NextComment, Lines
+---@type integer
+local Ci
+---@type integer
+local Offset
+local pushWarning, NextComment, Lines
local parseType, parseTypeUnit
---@type any
local Parser = re.compile([[
@@ -159,8 +163,8 @@ local function peekToken()
return TokenTypes[Ci+1], TokenContents[Ci+1]
end
----@return string tokenType
----@return string tokenContent
+---@return string? tokenType
+---@return string? tokenContent
local function nextToken()
Ci = Ci + 1
if not TokenTypes[Ci] then