diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-10 20:31:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-10 20:31:47 +0800 |
commit | 04601c7da4a485d84be5e0b9864acf27f978c275 (patch) | |
tree | 7edcc2cf6868dfb1cf85412591f03faf5bf8c108 /script/parser/luadoc.lua | |
parent | 38a2b7f9df15b8737ba6fba27861eba50b2277b6 (diff) | |
download | lua-language-server-04601c7da4a485d84be5e0b9864acf27f978c275.zip |
doc.type.integer
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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 |