summaryrefslogtreecommitdiff
path: root/server/test/completion
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-13 20:25:59 +0800
committersumneko <sumneko@hotmail.com>2019-05-13 20:25:59 +0800
commit2f8a2d9cdc4ea0b9f7de870113a400ddb0fa7c66 (patch)
treef01f1d693665fb277114c87e1d669da0fc89944c /server/test/completion
parent6cfd613662f54fead966e4aa3c1d1aa4616c8eb5 (diff)
downloadlua-language-server-2f8a2d9cdc4ea0b9f7de870113a400ddb0fa7c66.zip
自动完成参数检查是否在函数或表内
Diffstat (limited to 'server/test/completion')
-rw-r--r--server/test/completion/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index f288af2a..5e9b303e 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -1173,3 +1173,14 @@ f($)
kind = CompletionItemKind.EnumMember,
}
}
+
+TEST [[
+---@param x function | 'function () end'
+function f(x)
+end
+
+f(function ()
+ $
+end)
+]]
+(nil)