summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-11 16:57:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-11 16:57:21 +0800
commite1912470260bac17e7efc565cb59719beb810d01 (patch)
tree712057774af3b500a021704a1b328923af0b76a0 /test/crossfile
parente82c09fd0b06e8d4ca872759fb6bb4d50506dd6a (diff)
downloadlua-language-server-e1912470260bac17e7efc565cb59719beb810d01.zip
fix #1608
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index e6517aa9..c3d7078c 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1582,3 +1582,27 @@ TEST {
}
```]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@alias someType
+ ---| "#" # description
+
+ ---@type someType
+ local <?someValue?>
+ ]]
+ },
+ hover = [[
+```lua
+local someValue: "#"
+```
+
+---
+
+```lua
+someType:
+ | "#" -- description
+```]]
+}