diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-18 21:37:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-18 21:37:41 +0800 |
commit | 907bbbe0925e49f7b347cb81c20159f20dd98854 (patch) | |
tree | fd4210478cc77de8efc02b3783f48960e4ab7243 /test/crossfile | |
parent | 5e36ce84e925f9c6e8eeeb3f9406b68dc6feaba6 (diff) | |
download | lua-language-server-907bbbe0925e49f7b347cb81c20159f20dd98854.zip |
cleanup markdown
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/completion.lua | 4 | ||||
-rw-r--r-- | test/crossfile/hover.lua | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index d393c8e8..e9a70199 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -116,7 +116,7 @@ function TEST(data) end end if item['description'] then - item['description'] = item['description'] + item['description'] = tostring(item['description']) : gsub('\r\n', '\n') end end @@ -727,6 +727,7 @@ TEST { detail = 'function', description = [[ 从 [myfunc.lua](file:///myfunc.lua) 中导入 + ```lua function (a: any, b: any) ```]], @@ -757,6 +758,7 @@ TEST { detail = 'function', description = [[ 从 [dir\myfunc.lua](file:///dir/myfunc.lua) 中导入 + ```lua function (a: any, b: any) ```]], diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index aaf69e7a..e673bc5f 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -71,6 +71,9 @@ function TEST(expect) if hover.label then hover.label = hover.label:gsub('\r\n', '\n') end + if hover.description then + hover.description = tostring(hover.description) + end assert(eq(hover.label, expect.hover.label)) assert(eq(hover.description, expect.hover.description)) end |