summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-15 23:48:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-15 23:48:13 +0800
commit7d546aeb0c78d2790a583809ceabfa620fdbde3c (patch)
treeb1d6ad821dcb23af83908fd5ecabd43337fe6650 /test/crossfile
parent82d716ccaa8ebab931fd2328faa4f4c5a76eb99a (diff)
downloadlua-language-server-7d546aeb0c78d2790a583809ceabfa620fdbde3c.zip
resolve #1230
show enums for variables
Diffstat (limited to 'test/crossfile')
-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
+```]]
+}