diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-26 00:11:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-26 00:11:55 +0800 |
commit | ed64703ef9fec2b1c6736a0deb68bd567875a654 (patch) | |
tree | c46cc9347c00d8d55fe9a0b97a17ae629f474c8c /meta | |
parent | 2c6f0f9bf83f9a44c466aaf0d45ed9f8eab6c117 (diff) | |
download | lua-language-server-ed64703ef9fec2b1c6736a0deb68bd567875a654.zip |
#1207 supports `---@return boolean ...`
Diffstat (limited to 'meta')
-rw-r--r-- | meta/template/basic.lua | 2 | ||||
-rw-r--r-- | meta/template/table.lua | 2 | ||||
-rw-r--r-- | meta/template/utf8.lua | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 6a89fb01..7afbf273 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -284,6 +284,6 @@ function xpcall(f, msgh, arg1, ...) end ---@param list T[] ---@param i? integer ---@param j? integer ----@return T +---@return T ... ---@nodiscard function unpack(list, i, j) end diff --git a/meta/template/table.lua b/meta/template/table.lua index b0a386c3..1cb2f56f 100644 --- a/meta/template/table.lua +++ b/meta/template/table.lua @@ -61,7 +61,7 @@ function table.sort(list, comp) end ---@param list T[] ---@param i? integer ---@param j? integer ----@return T +---@return T ... ---@nodiscard function table.unpack(list, i, j) end diff --git a/meta/template/utf8.lua b/meta/template/utf8.lua index a00a3238..1797a5e8 100644 --- a/meta/template/utf8.lua +++ b/meta/template/utf8.lua @@ -33,7 +33,7 @@ function utf8.codes(s, lax) end ---@param i? integer ---@param j? integer ---@return integer code ----@return ... +---@return integer ... ---@nodiscard function utf8.codepoint(s, i, j) end ---#else @@ -42,7 +42,7 @@ function utf8.codepoint(s, i, j) end ---@param j? integer ---@param lax? boolean ---@return integer code ----@return ... +---@return integer ... ---@nodiscard function utf8.codepoint(s, i, j, lax) end ---#end |