summaryrefslogtreecommitdiff
path: root/test/crossfile/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/hover.lua')
-rw-r--r--test/crossfile/hover.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index f412183c..60a962e9 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1471,3 +1471,29 @@ function A()
comments]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@alias A
+ ---| 1 # comment1
+ ---| 2 # comment2
+
+ ---@type A
+ local <?x?>
+ ]]
+ },
+ hover = [[
+```lua
+local x: 1|2
+```
+
+---
+
+```lua
+A:
+ | 1 -- comment1
+ | 2 -- comment2
+```]]
+}