summaryrefslogtreecommitdiff
path: root/server/test/crossfile/hover.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-26 21:00:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-26 21:00:59 +0800
commitdef0d9b2a3d70d61217020b82cf0edf913ea1ac6 (patch)
treeecd852562a7000e47e028718a27e13477569b6d0 /server/test/crossfile/hover.lua
parent6fb028ef9e053076170ed03e46b9a4ab5d248e0c (diff)
parentf92a71db462b2769eea194143f15ab090b665862 (diff)
downloadlua-language-server-def0d9b2a3d70d61217020b82cf0edf913ea1ac6.zip
Merge commit 'f92a71db462b2769eea194143f15ab090b665862'
Diffstat (limited to 'server/test/crossfile/hover.lua')
-rw-r--r--server/test/crossfile/hover.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua
index 6941edb8..b0b8ab61 100644
--- a/server/test/crossfile/hover.lua
+++ b/server/test/crossfile/hover.lua
@@ -240,3 +240,22 @@ TEST {
description = 'abc',
}
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = '',
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ --- abc
+ <?x?> = 1
+ ]],
+ },
+ hover = {
+ label = [[global x: number = 1]],
+ name = 'x',
+ description = 'abc',
+ }
+}