summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-18 20:05:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-18 20:05:37 +0800
commit1a6e21031ba029dcff7ae4efd0b8649ba8908c77 (patch)
tree1b19a05e4d7c569c770e89e026aa485f577889aa /test
parent4d1a35d31bf5534a7f717b44ff0a71a2885611f2 (diff)
downloadlua-language-server-1a6e21031ba029dcff7ae4efd0b8649ba8908c77.zip
#1255 hover for `doc.enum`
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/hover.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 60a962e9..d1148309 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1497,3 +1497,31 @@ A:
| 2 -- comment2
```]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@enum <?A?>
+ local t = {
+ x = 1,
+ y = 2,
+ z = 3,
+ }
+ ]]
+ },
+ hover = [[
+```lua
+(enum) A
+```
+
+---
+
+```lua
+{
+ x: integer = 1,
+ y: integer = 2,
+ z: integer = 3,
+}
+```]]
+}