summaryrefslogtreecommitdiff
path: root/test-beta/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-17 18:32:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-17 18:32:11 +0800
commit2b434ab4f4a078773a27e205a60b63a9ae4efe1b (patch)
treec63f76d3fa15d5f5994759e3e3bc8aa6575d3a8b /test-beta/completion/init.lua
parent54a97c8ebd12bee141eb5d0d0a3b92f9d411d0d5 (diff)
downloadlua-language-server-2b434ab4f4a078773a27e205a60b63a9ae4efe1b.zip
过所有测试
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r--test-beta/completion/init.lua32
1 files changed, 24 insertions, 8 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index e11bd0fb..a37ca753 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -329,6 +329,26 @@ do$
label = 'loadfile()',
kind = define.CompletionItemKind.Snippet,
},
+ {
+ label = 'loadstring',
+ kind = define.CompletionItemKind.Function,
+ deprecated = true,
+ },
+ {
+ label = 'loadstring()',
+ kind = define.CompletionItemKind.Snippet,
+ deprecated = true,
+ },
+ {
+ label = 'module',
+ kind = define.CompletionItemKind.Function,
+ deprecated = true,
+ },
+ {
+ label = 'module()',
+ kind = define.CompletionItemKind.Snippet,
+ deprecated = true,
+ },
}
TEST [[
@@ -850,7 +870,7 @@ xx$
TEST [[
local index
-tbl[ind$]
+tbl[inde$]
]]
{
{
@@ -1271,16 +1291,12 @@ TEST [[
}
TEST [[
----@class Class
----@param x C$
+---@class ZClass
+---@param x ZC$
]]
{
{
- label = 'Class',
- kind = define.CompletionItemKind.Class,
- },
- {
- label = 'function',
+ label = 'ZClass',
kind = define.CompletionItemKind.Class,
},
}