summaryrefslogtreecommitdiff
path: root/server/test/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-26 20:52:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-26 20:52:59 +0800
commiteb4cc1e5915a2ac0fceaa4f6b08f7f0f762d3fb6 (patch)
tree82ef5a990f3b43b51d03785558398a97ba3aa46f /server/test/hover
parentf92a71db462b2769eea194143f15ab090b665862 (diff)
downloadlua-language-server-eb4cc1e5915a2ac0fceaa4f6b08f7f0f762d3fb6.zip
用option来实现一些私有功能
Diffstat (limited to 'server/test/hover')
-rw-r--r--server/test/hover/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index f1a18c06..108bc978 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -812,3 +812,13 @@ local <toclose> <const> <?x?> = 1
[[
local <toclose> <const> x: number = 1
]]
+
+TEST [[
+---@param x number {optional = 'after'}
+---@param y boolean {optional = 'self'}
+---@param z string
+function <?f?>(x, y, z) end
+]]
+[=[
+function f([x: number [, y: boolean], z: string])
+]=]