summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 43b80f28..fe6e7233 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1309,3 +1309,37 @@ local n: integer
---
comments]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ --[here](x.lua)
+ local <?n?>
+ ]]
+ },
+ hover = [[
+```lua
+local n: unknown
+```
+
+---
+[here](file:///x.lua)]]
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ --[here](D:/x.lua)
+ local <?n?>
+ ]]
+ },
+ hover = [[
+```lua
+local n: unknown
+```
+
+---
+[here](file:///d%3A/x.lua)]]
+}