diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-13 20:25:59 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-13 20:25:59 +0800 |
commit | 2f8a2d9cdc4ea0b9f7de870113a400ddb0fa7c66 (patch) | |
tree | f01f1d693665fb277114c87e1d669da0fc89944c /server/test/completion | |
parent | 6cfd613662f54fead966e4aa3c1d1aa4616c8eb5 (diff) | |
download | lua-language-server-2f8a2d9cdc4ea0b9f7de870113a400ddb0fa7c66.zip |
自动完成参数检查是否在函数或表内
Diffstat (limited to 'server/test/completion')
-rw-r--r-- | server/test/completion/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index f288af2a..5e9b303e 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -1173,3 +1173,14 @@ f($) kind = CompletionItemKind.EnumMember, } } + +TEST [[ +---@param x function | 'function () end' +function f(x) +end + +f(function () + $ +end) +]] +(nil) |