diff options
author | actboy168 <actboy168@gmail.com> | 2020-12-03 15:32:06 +0800 |
---|---|---|
committer | actboy168 <actboy168@gmail.com> | 2020-12-03 15:32:18 +0800 |
commit | 43d71af51d3b8d6e3f7ab33d33eddace57de6184 (patch) | |
tree | a3e85f359313a6212c88e1ab859b8697496e5e11 /test | |
parent | cb3996375367d44464b4b8350461ed5e350f51ee (diff) | |
download | lua-language-server-43d71af51d3b8d6e3f7ab33d33eddace57de6184.zip |
增加一个测试
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/hover.lua | 20 |
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]] +}} |