summaryrefslogtreecommitdiff
path: root/test-beta/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-25 02:42:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-25 02:42:16 +0800
commit9a86f6bc46f630d8b7a4e691c9005776b8267697 (patch)
tree0a4effe8739de14d7adecf83fa7500d88926ee06 /test-beta/hover/init.lua
parent5967ee11659d3eb555d597c890c8443a44d7b9b1 (diff)
downloadlua-language-server-9a86f6bc46f630d8b7a4e691c9005776b8267697.zip
hover参数支持可选
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r--test-beta/hover/init.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 945adc98..fedf6d0d 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -232,14 +232,14 @@ TEST [[
string.<?sub?>()
]]
[[
-function string.sub(string, i: integer, j: integer)
+function string.sub(string, i: integer [, j: integer])
-> string
]]
TEST[[
('xx'):<?sub?>()
]]
-[[function string:sub(i: integer, j: integer)
+[[function string:sub(i: integer [, j: integer])
-> string]]
TEST [[
@@ -258,7 +258,7 @@ TEST [[
<?load?>()
]]
[=[
-function load(chunk: string|function, chunkname: string, mode: string, env: table)
+function load(chunk: string|function [, chunkname: string [, mode: string [, env: table]]])
-> function
2. error_message: string
]=]
@@ -623,7 +623,7 @@ TEST[[
<?next?>()
]]
[[
-function next(table: table, index: any)
+function next(table: table [, index: any])
-> key: any
2. value: any
]]
@@ -770,9 +770,9 @@ TEST [[
io.<?popen?>()
]]
[[
-function io.popen(prog: string, mode: string)
+function io.popen(prog: string [, mode: string])
-> FILE*|nil
- 2. error_message: string?
+ 2.[error_message: string]
]]
--TEST[[