summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-22 15:50:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-22 15:50:03 +0800
commit82c3b68c6b80f754aa9fc12a4f029eba237e2807 (patch)
tree7426eca82af208e643b57a872811e144607daba2 /test/completion
parente7c4777ace613736d101927ccc6f5c877f89a611 (diff)
downloadlua-language-server-82c3b68c6b80f754aa9fc12a4f029eba237e2807.zip
fix
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 1cdff803..7c383fe4 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3382,3 +3382,17 @@ f(<??>)
kind = define.CompletionItemKind.EnumMember,
},
}
+
+TEST [[
+return function ()
+ local function fff(xxx)
+ for f in xx<??>
+ end
+end
+]]
+{
+ {
+ label = 'xxx',
+ kind = define.CompletionItemKind.Variable,
+ },
+}