diff options
author | Paul Emmerich <emmerich@google.com> | 2024-09-01 12:32:33 +0200 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-09-05 18:28:37 +0800 |
commit | 5083f1cd9438da23f1022327ea24e7044bcc2f49 (patch) | |
tree | 735becc28cb3795fe2605f75ff8db8e1190151bc /meta | |
parent | eb0bf985b4b22e529cfb75b88d7e8c6814acacea (diff) | |
download | lua-language-server-5083f1cd9438da23f1022327ea24e7044bcc2f49.zip |
Fix setfenv definition
The first parameter got parsed as `async fun(...):(...|integer)` which triggered an incorrect warning when using it as `setfenv(2, env)`
Diffstat (limited to 'meta')
-rw-r--r-- | meta/template/basic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 75cd1dee..70303ca0 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -210,7 +210,7 @@ function select(index, ...) end ---@version 5.1 ---#DES 'setfenv' ----@param f async fun(...):...|integer +---@param f (async fun(...):...)|integer ---@param table table ---@return function function setfenv(f, table) end |