summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-02 19:55:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-02 19:55:03 +0800
commit295e52be73cf3fbb5f661f74f143c0f294c0f93b (patch)
tree6d29c2af1a1b1239260951bf9bd79975cc1ba14b /test/crossfile
parent236e20bce227ce9105db82794c340f348d71ea48 (diff)
downloadlua-language-server-295e52be73cf3fbb5f661f74f143c0f294c0f93b.zip
#352 split multi description
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index b4d57249..80142c79 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -521,6 +521,29 @@ comment3]]
TEST {{ path = 'a.lua', content = '', }, {
path = 'b.lua',
content = [[
+ ---@param arg3 integer comment3
+ ---@overload fun(arg3)
+ ---@param arg1 integer comment1
+ ---@param arg2 integer comment2
+ ---@return boolean
+ function <?f?>(arg1, arg2) end
+ ]]
+},
+hover = {
+ label = EXISTS,
+ name = 'f',
+ description = [[
+@*param* `arg3` — comment3
+---
+@*param* `arg1` — comment1
+
+@*param* `arg2` — comment2]]
+}}
+
+
+TEST {{ path = 'a.lua', content = '', }, {
+ path = 'b.lua',
+ content = [[
---@return boolean, string #comment
function <?f?>() end
]]