summaryrefslogtreecommitdiff
path: root/test/completion/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion/init.lua')
-rw-r--r--test/completion/init.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index bf7a896f..ba3c5be5 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -1788,6 +1788,39 @@ f($)
}
TEST [[
+---this is
+---a multi line
+---comment
+---@alias XXXX
+---comment 1
+---comment 1
+---| '1'
+---comment 2
+---comment 2
+---| '2'
+---@param x XXXX
+local function f(x)
+end
+
+
+---comment 3
+---comment 3
+---| '3'
+
+f($)
+]]
+{
+ {
+ label = '1',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+ {
+ label = '2',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+}
+
+TEST [[
---@param x function | 'function () end'
function f(x)
end