summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoractboy168 <actboy168@gmail.com>2020-12-03 15:32:06 +0800
committeractboy168 <actboy168@gmail.com>2020-12-03 15:32:18 +0800
commit43d71af51d3b8d6e3f7ab33d33eddace57de6184 (patch)
treea3e85f359313a6212c88e1ab859b8697496e5e11 /test
parentcb3996375367d44464b4b8350461ed5e350f51ee (diff)
downloadlua-language-server-43d71af51d3b8d6e3f7ab33d33eddace57de6184.zip
增加一个测试
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/hover.lua20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 9fc0842e..ec1c3f01 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -569,7 +569,6 @@ function f()
@*return* — comment]]
}}
-
TEST {{ path = 'a.lua', content = '', }, {
path = 'b.lua',
content = [[
@@ -586,3 +585,22 @@ function f()
name = 'f',
description = nil
}}
+
+TEST {{ path = 'a.lua', content = '', }, {
+ path = 'b.lua',
+ content = [[
+ ---comment1
+ ---comment2
+ function <?f?>() end
+ ]]
+},
+hover = {
+ label = "function f()",
+ name = 'f',
+ description = [[
+---
+
+comment1
+
+comment2]]
+}}