summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-27 19:51:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-27 19:51:11 +0800
commitf188a3001de879387fafbb3e875ceafa48e74ab9 (patch)
tree092ae43d0f835392ce3a23f9a9cbbd9f9b6431b7 /server
parentaed2110c50c670d46e5b96f6a364bcaffc7e9608 (diff)
downloadlua-language-server-f188a3001de879387fafbb3e875ceafa48e74ab9.zip
过测试
Diffstat (limited to 'server')
-rw-r--r--server/test/completion/init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index bc17901e..a8cbdfa6 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -226,6 +226,12 @@ loc$
{
label = 'local',
kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'local function',
+ kind = CompletionItemKind.Snippet,
+ insertText = EXISTS,
+ insertTextFormat = 2,
}
}
@@ -780,6 +786,12 @@ else$
{
label = 'elseif',
kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'elseif .. then',
+ kind = CompletionItemKind.Snippet,
+ insertText = EXISTS,
+ insertTextFormat = 2,
}
}
@@ -1096,6 +1108,12 @@ end
label = 'elseif',
kind = CompletionItemKind.Keyword,
},
+ {
+ label = 'elseif .. then',
+ kind = CompletionItemKind.Snippet,
+ insertTextFormat = 2,
+ insertText = EXISTS,
+ },
}
TEST [[