summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-17 16:45:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-17 16:45:20 +0800
commitbed85ea48999b871d9ea6b3eef260dc88e4ee2cc (patch)
treecc9a18592c94ce04b69a0aa713be4e89b6913000 /test/completion
parent55380a91e9a6d7fe4bbaeddc4b649822183a0db8 (diff)
downloadlua-language-server-bed85ea48999b871d9ea6b3eef260dc88e4ee2cc.zip
close #442 supports multi-line comment
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/init.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 38d85132..9848bc09 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -1759,6 +1759,35 @@ 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
+
+f($)
+]]
+{
+ {
+ label = '1',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+ {
+ label = '2',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+}
+
+TEST [[
---@param x function | 'function () end'
function f(x)
end