summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-03 19:13:01 +0800
committersumneko <sumneko@hotmail.com>2019-04-03 19:13:01 +0800
commit289a780f38c24a7ee0f4ca9502214b41fe11fc30 (patch)
tree394a8b94a072b6f567a6918150cb683d8ecaef96 /server/test
parentb1f9435c0bc21fb2d27677745e7726c9333b3c06 (diff)
downloadlua-language-server-289a780f38c24a7ee0f4ca9502214b41fe11fc30.zip
自动完成的 child 过滤关键字
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua11
-rw-r--r--server/test/diagnostics/init.lua2
2 files changed, 8 insertions, 5 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index b34d567d..2f965bcb 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -700,10 +700,6 @@ end
label = 'b',
kind = CompletionItemKind.Field,
},
- {
- label = 'end',
- kind = CompletionItemKind.Field,
- },
}
TEST [[
@@ -731,3 +727,10 @@ TEST [[
function table.i@
]]
(EXISTS)
+
+TEST [[
+do
+ xx.@
+end
+]]
+(nil)
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index f1efca70..dc060ba4 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -245,4 +245,4 @@ ROOT = 1
TEST [[
local f = load('')
f(1, 2, 3)
-]] \ No newline at end of file
+]]