summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-29 17:06:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-29 17:06:16 +0800
commitf4a4fc63cf14f038a07068292909432f28f0c2a7 (patch)
treedddbaf6c9bf5367202f2807a8e599f3254ceb67a /test/completion/common.lua
parentec613851607c1fdeb256afa195d79760bb2e66c6 (diff)
downloadlua-language-server-f4a4fc63cf14f038a07068292909432f28f0c2a7.zip
fix
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r--test/completion/common.lua21
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,
+ }
+}