summaryrefslogtreecommitdiff
path: root/server/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-19 18:45:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-19 18:45:21 +0800
commit89f47f8671b5b41a97850efd309f642d880aad97 (patch)
treee2818e7746e779be4648b4818c1ac47857bf3571 /server/test/completion
parentabaccdbdd6f8858e594ff8a64925d3d4b0024b8b (diff)
downloadlua-language-server-89f47f8671b5b41a97850efd309f642d880aad97.zip
不要和下一行连起来
Diffstat (limited to 'server/test/completion')
-rw-r--r--server/test/completion/init.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 95f66d33..f672bbac 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -237,3 +237,22 @@ t:@
documentation = EXISTS,
}
}
+
+TEST [[
+local t = {
+ a = {},
+}
+t.@
+xxx()
+]]
+{
+ {
+ label = 'a',
+ kind = CompletionItemKind.Field,
+ },
+ {
+ label = 'xxx',
+ kind = CompletionItemKind.Method,
+ documentation = EXISTS,
+ },
+}