summaryrefslogtreecommitdiff
path: root/meta/template
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-24 14:37:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-24 14:37:12 +0800
commitc8e9a4a665da5e8dd73fb7cfb1a94b98f0e45c65 (patch)
treee1c656402518c21e16cbe218cf42fb73a4df4c0c /meta/template
parentc6549d9dd8eb8dfca684f6a25dc7e1c01dcaf358 (diff)
downloadlua-language-server-c8e9a4a665da5e8dd73fb7cfb1a94b98f0e45c65.zip
mark `string.gmatch` as `nodiscard`
Diffstat (limited to 'meta/template')
-rw-r--r--meta/template/string.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/template/string.lua b/meta/template/string.lua
index d3b4c431..0e0d0537 100644
--- a/meta/template/string.lua
+++ b/meta/template/string.lua
@@ -51,6 +51,7 @@ function string.format(s, ...) end
---@param s string
---@param pattern string
---@return fun():string, ...
+---@nodiscard
function string.gmatch(s, pattern) end
---#else
---@param s string