summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-07 17:48:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-07 17:48:31 +0800
commit8123dd362c1991ac87a26822729f24a53ef6b35e (patch)
tree610a0177ad0b1387e9ecc680c586c957930b76dd /test
parent56e30b07fffee79e6c0612f0f099eb590c7be558 (diff)
downloadlua-language-server-8123dd362c1991ac87a26822729f24a53ef6b35e.zip
resolve #455 tail comments support lua string
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/hover.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index dacf1ab2..bf56b39a 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -746,3 +746,18 @@ hover = {
name = 'food',
description = "I'm a multiline comment\n"
}}
+
+TEST {{ path = 'a.lua', content = '', }, {
+ path = 'b.lua',
+ content = [[
+---@return string # 'this is a tab `\t`'
+local function <?f?>() end
+]]
+},
+hover = {
+ label = [[
+function f()
+ -> string]],
+ name = 'food',
+ description = "@*return* — this is a tab `\t`"
+}}