summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-19 15:51:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-19 15:51:13 +0800
commitb841b2668dd7d36cbf42c3f261e69e2a70358c6b (patch)
tree83118b6ff32fd1b93b21605e2494dc6da8144b14 /test-beta
parent2c07a7a12bf840e1a90abc117fd5e69866f76fdb (diff)
downloadlua-language-server-b841b2668dd7d36cbf42c3f261e69e2a70358c6b.zip
优化全局性能
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/definition/luadoc.lua2
-rw-r--r--test-beta/references/init.lua5
2 files changed, 5 insertions, 2 deletions
diff --git a/test-beta/definition/luadoc.lua b/test-beta/definition/luadoc.lua
index 41331c48..9360e27c 100644
--- a/test-beta/definition/luadoc.lua
+++ b/test-beta/definition/luadoc.lua
@@ -92,7 +92,7 @@ function t(<?<!f!>?>) end
]]
TEST [[
----@overload <!fun(y: boolean)!>
+---@overload fun(y: boolean)
---@param x number
---@param y boolean
---@param z string
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index eeae5f46..835a0764 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -242,18 +242,21 @@ print(t.<!a!>)
]]
TEST [[
+local <!f!>
local <!t!> = <?f?>
]]
TEST [[
+local <!f!>
a.<!t!> = <?f?>
]]
TEST [[
-<!t!>.<!f!> = <?t?>
+<!t!>.f = <?t?>
]]
TEST [[
+local <!f!>
local <?t?> = <!f!>
]]