diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-11 13:24:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-11 13:24:00 +0800 |
commit | d4c83bca160fd4215aad241f466bb2485d9e00e5 (patch) | |
tree | bbca4ba9e3f1b9136a2d539fa08086c208321b8b /test-beta/crossfile | |
parent | c226b214cbbf23a39ec3a065c9cadc5e17acd883 (diff) | |
download | lua-language-server-d4c83bca160fd4215aad241f466bb2485d9e00e5.zip |
doc.resume
Diffstat (limited to 'test-beta/crossfile')
-rw-r--r-- | test-beta/crossfile/hover.lua | 23 |
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', |