summaryrefslogtreecommitdiff
path: root/test-beta/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-09 15:24:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-09 15:24:15 +0800
commit969beada83dc990c4b19ea6eec1614bb2cfe95f9 (patch)
treeabec7c21a7617cc9dd778149c3ce83ee9b9ab84a /test-beta/completion/init.lua
parent9d82d866468c0a33c153a3d40d118b4ae7cb2689 (diff)
downloadlua-language-server-969beada83dc990c4b19ea6eec1614bb2cfe95f9.zip
函数调用的代码片段
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r--test-beta/completion/init.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index add0125c..76aa6c2c 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -33,7 +33,7 @@ end
rawset(_G, 'TEST', true)
-local cared = {
+local Cared = {
['label'] = true,
['kind'] = true,
['textEdit'] = true,
@@ -58,7 +58,7 @@ function TEST(script)
item[k] = v
end
for k in pairs(item) do
- if not cared[k] then
+ if not Cared[k] then
item[k] = nil
end
end
@@ -912,8 +912,7 @@ else$
},
}
--- TODO
-do return end
+Cared['insertText'] = true
TEST [[
local xpcal
@@ -935,6 +934,9 @@ xpcal$
},
}
+-- TODO
+do return end
+
TEST [[
function mt:f(a, b, c)
end