summaryrefslogtreecommitdiff
path: root/test-beta/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-11 13:24:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-11 13:24:00 +0800
commitd4c83bca160fd4215aad241f466bb2485d9e00e5 (patch)
treebbca4ba9e3f1b9136a2d539fa08086c208321b8b /test-beta/crossfile
parentc226b214cbbf23a39ec3a065c9cadc5e17acd883 (diff)
downloadlua-language-server-d4c83bca160fd4215aad241f466bb2485d9e00e5.zip
doc.resume
Diffstat (limited to 'test-beta/crossfile')
-rw-r--r--test-beta/crossfile/hover.lua23
1 files changed, 12 insertions, 11 deletions
diff --git a/test-beta/crossfile/hover.lua b/test-beta/crossfile/hover.lua
index c743f7a5..5e915803 100644
--- a/test-beta/crossfile/hover.lua
+++ b/test-beta/crossfile/hover.lua
@@ -309,15 +309,17 @@ TEST {
]]
},
hover = {
- label = 'function f(x: string)',
+ label = "function f(x: string|'选项1'|'选项2')",
name = 'f',
description = [[
+```lua
x: string
- | '选项1' -- 注释1
- |>'选项2' -- 注释2]]
+ | '选项1' -- 注释1
+ |>'选项2' -- 注释2
+```]]
}
}
-
+do return end
TEST {
{
path = 'a.lua',
@@ -336,16 +338,15 @@ TEST {
hover = {
label = 'function f(x: option)',
name = 'f',
- args = EXISTS,
- rawEnum = EXISTS,
- enum = [[
-
+ description = [[
+```lua
x: option
- | '选项1' -- 注释1
- |>'选项2' -- 注释2]]
+ | '选项1' -- 注释1
+ |>'选项2' -- 注释2
+```]]
}
}
-
+do return end
TEST {
{
path = 'a.lua',