summaryrefslogtreecommitdiff
path: root/test-beta/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-10 14:25:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-10 14:25:40 +0800
commitee07ad02720ea8e36f08e1f7981d2b41cb7e9f07 (patch)
treec8cb775888ec0cc543eb14cb3458aa494d30374e /test-beta/completion/init.lua
parent328db97c169dfa44607acebd09bd63ca22491733 (diff)
downloadlua-language-server-ee07ad02720ea8e36f08e1f7981d2b41cb7e9f07.zip
格式化文档
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r--test-beta/completion/init.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index 7ce95b84..bff1abbc 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -15,14 +15,22 @@ local function eq(a, b)
if tp1 == 'table' then
local mark = {}
for k in pairs(a) do
- if not eq(a[k], b[k]) then
- return false
+ if type(k) == 'number'
+ or k == 'label'
+ or k == 'kind' then
+ if not eq(a[k], b[k]) then
+ return false
+ end
+ mark[k] = true
end
- mark[k] = true
end
for k in pairs(b) do
- if not mark[k] then
- return false
+ if type(k) == 'number'
+ or k == 'label'
+ or k == 'kind' then
+ if not mark[k] then
+ return false
+ end
end
end
return true
@@ -126,16 +134,10 @@ ass$
{
label = 'assert',
kind = CompletionItemKind.Function,
- documentation = EXISTS,
- detail = EXISTS,
},
{
label = 'assert()',
kind = CompletionItemKind.Snippet,
- documentation = EXISTS,
- insertText = EXISTS,
- insertTextFormat = 2,
- detail = EXISTS,
},
}
@@ -147,7 +149,6 @@ z$
{
label = 'zabc',
kind = CompletionItemKind.Variable,
- detail = '(number) = 1',
}
}
@@ -159,7 +160,6 @@ z$
{
label = 'zabc',
kind = CompletionItemKind.Variable,
- detail = '(number) = 1.0',
}
}