diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-29 17:06:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-29 17:06:16 +0800 |
commit | f4a4fc63cf14f038a07068292909432f28f0c2a7 (patch) | |
tree | dddbaf6c9bf5367202f2807a8e599f3254ceb67a /test/completion/common.lua | |
parent | ec613851607c1fdeb256afa195d79760bb2e66c6 (diff) | |
download | lua-language-server-f4a4fc63cf14f038a07068292909432f28f0c2a7.zip |
fix
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 62569d01..4cfd1872 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -2659,3 +2659,24 @@ emit:on('won', <??>) kind = define.CompletionItemKind.Function, } } + +TEST [[ +local function f() + local inferCache + in<??> +end +]] +{ + [1] = { + label = 'in', + kind = define.CompletionItemKind.Keyword, + }, + [2] = { + label = 'in ..', + kind = define.CompletionItemKind.Snippet, + }, + [3] = { + label = 'inferCache', + kind = define.CompletionItemKind.Variable, + } +} |