diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-17 16:45:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-17 16:45:20 +0800 |
commit | bed85ea48999b871d9ea6b3eef260dc88e4ee2cc (patch) | |
tree | cc9a18592c94ce04b69a0aa713be4e89b6913000 /test/completion | |
parent | 55380a91e9a6d7fe4bbaeddc4b649822183a0db8 (diff) | |
download | lua-language-server-bed85ea48999b871d9ea6b3eef260dc88e4ee2cc.zip |
close #442 supports multi-line comment
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/init.lua | 29 |
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 |