summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-27 17:27:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-27 17:27:29 +0800
commit9f60f0982ed46448714044a394f3f1143563c581 (patch)
treec255d9f9cc569fe14d2361cb0159e10b92659554 /server/test
parent0583a7dd28bb21012ac8334b5b2479a378263b6f (diff)
downloadlua-language-server-9f60f0982ed46448714044a394f3f1143563c581.zip
#的自动完成会检查场合
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 962befa0..5d1ab35a 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -577,6 +577,16 @@ fff[#ff@]
}
TEST [[
+local _ = fff.kkk[#@]
+]]
+{
+ {
+ label = 'fff.kkk',
+ kind = CompletionItemKind.Snippet,
+ },
+}
+
+TEST [[
local t = {
a = 1,
}