summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-10 21:55:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-10 21:55:52 +0800
commitf49a70c5a28ef163ffaf8fdc17dd0dbe3816c4e2 (patch)
treef42dda2981bf7c0e015949d0e3fb0ef1b433b542 /test-beta
parent147486a480a7ce5b56361751166f997def5f9b5b (diff)
downloadlua-language-server-f49a70c5a28ef163ffaf8fdc17dd0dbe3816c4e2.zip
修正bug
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/completion/init.lua30
1 files changed, 15 insertions, 15 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index 5736d9b0..228c4e78 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -219,21 +219,21 @@ loc$
]]
{
{
- label = 'collectgarbage',
- kind = CompletionItemKind.Function,
+ label = 'local',
+ kind = CompletionItemKind.Keyword,
},
{
- label = 'collectgarbage()',
+ label = 'local function',
kind = CompletionItemKind.Snippet,
},
{
- label = 'local',
- kind = CompletionItemKind.Keyword,
+ label = 'collectgarbage',
+ kind = CompletionItemKind.Function,
},
{
- label = 'local function',
+ label = 'collectgarbage()',
kind = CompletionItemKind.Snippet,
- }
+ },
}
TEST [[
@@ -241,6 +241,14 @@ do$
]]
{
{
+ label = 'do',
+ kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'do .. end',
+ kind = CompletionItemKind.Snippet,
+ },
+ {
label = 'dofile',
kind = CompletionItemKind.Function,
},
@@ -264,14 +272,6 @@ do$
label = 'loadfile()',
kind = CompletionItemKind.Snippet,
},
- {
- label = 'do',
- kind = CompletionItemKind.Keyword,
- },
- {
- label = 'do .. end',
- kind = CompletionItemKind.Snippet,
- }
}
TEST [[