diff options
author | C3pa <41503714+C3pa@users.noreply.github.com> | 2023-03-20 12:07:09 +0100 |
---|---|---|
committer | C3pa <41503714+C3pa@users.noreply.github.com> | 2023-03-20 12:07:09 +0100 |
commit | 21c84316f4e76f0ab5472609492bafbf43b4f1ad (patch) | |
tree | 9108676281b428c7281f9e5dc48c9b51a1e07050 /meta/template | |
parent | 990b471005d490e9de2156cbe17b27685a2023d3 (diff) | |
download | lua-language-server-21c84316f4e76f0ab5472609492bafbf43b4f1ad.zip |
Update string.gmatch argument types
Diffstat (limited to 'meta/template')
-rw-r--r-- | meta/template/string.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/template/string.lua b/meta/template/string.lua index b85673f3..841654f5 100644 --- a/meta/template/string.lua +++ b/meta/template/string.lua @@ -46,14 +46,14 @@ function string.format(s, ...) end ---#DES 'string.gmatch' ---#if VERSION <= 5.3 then ----@param s string ----@param pattern string +---@param s string|number +---@param pattern string|number ---@return fun():string, ... ---@nodiscard function string.gmatch(s, pattern) end ---#else ----@param s string ----@param pattern string +---@param s string|number +---@param pattern string|number ---@param init? integer ---@return fun():string, ... function string.gmatch(s, pattern, init) end |