summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-26 17:29:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-26 17:29:40 +0800
commit68bb36273433e7ea764dc1cd583b3a97ccff7a0b (patch)
tree40a20a6fc56c9211ff9f217b999fc9cf29b880cb /server/test/completion/init.lua
parent5a46cba0367512b65322bf64125d5b9661c869bd (diff)
downloadlua-language-server-68bb36273433e7ea764dc1cd583b3a97ccff7a0b.zip
更多处理
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 9c2a878f..8a477ab2 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -297,3 +297,31 @@ local t = {
documentation = EXISTS,
}
}
+
+TEST [[
+local faa
+local f@
+print(fff)
+]]
+{
+ {
+ label = 'fff',
+ kind = CompletionItemKind.Variable,
+ },
+ {
+ label = 'function',
+ kind = CompletionItemKind.Keyword,
+ }
+}
+
+TEST [[
+local function f(f@)
+ print(fff)
+end
+]]
+{
+ {
+ label = 'fff',
+ kind = CompletionItemKind.Variable,
+ },
+}