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.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 69aa9239..e391014d 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1220,3 +1220,20 @@ ret1:
| 'r4'
```]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@type integer @ comments
+ local <?n?>
+ ]]
+ },
+ hover = [[
+```lua
+local n: integer
+```
+
+---
+ comments]]
+}