From bed85ea48999b871d9ea6b3eef260dc88e4ee2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 17 Mar 2021 16:45:20 +0800 Subject: close #442 supports multi-line comment --- test/completion/init.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'test/completion') 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 @@ -1758,6 +1758,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) -- cgit v1.2.3