summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-08 19:08:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-08 19:08:39 +0800
commitbc3976210d46fc7187a00930b6761abad60cc967 (patch)
tree67926f3a242a575bbf40a7e7d43d77662afd8c47 /test/crossfile
parent896e4b9796ab5c9d3943640f02114dccc48ba3dd (diff)
downloadlua-language-server-bc3976210d46fc7187a00930b6761abad60cc967.zip
fix #706
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 13e5e5c0..b1c4c804 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -999,3 +999,22 @@ local x: number
---
aaa]]}
+
+TEST {{ path = 'a.lua', content = '', }, {
+ path = 'b.lua',
+ content = [[
+---line1
+---
+---line2
+local function <?fn?>() end
+]]
+},
+hover = [[
+```lua
+function fn()
+```
+
+---
+line1
+
+line2]]}