summaryrefslogtreecommitdiff
path: root/test-beta/references/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-23 20:37:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-23 20:37:24 +0800
commita15c15d76bcf03f38074718bcb36edd8160a9a9d (patch)
treee968357c5f850acb09c359bb941b561071c94f78 /test-beta/references/init.lua
parent07c33176fccd576f015cf7858088d9a04672e3c8 (diff)
downloadlua-language-server-a15c15d76bcf03f38074718bcb36edd8160a9a9d.zip
支持从 function 找到接收方
Diffstat (limited to 'test-beta/references/init.lua')
-rw-r--r--test-beta/references/init.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index a353512a..548bc011 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -116,17 +116,17 @@ local t = {
print(t.<!a!>)
]]
-TEST [[
-local <!mt!> = {}
-function <!mt!>:a()
- <?self?>:remove()
-end
-]]
+--TEST [[
+--local <!mt!> = {}
+--function <!mt!>:a()
+-- <?self?>:remove()
+--end
+--]]
TEST [[
local function f()
- return <~<!function~> ()
- end!>
+ return <~function~> ()
+ end
end
local <!f2!> = f()
@@ -134,8 +134,8 @@ local <!f2!> = f()
TEST [[
local function f()
- return nil, <~<!function~> ()
- end!>
+ return nil, <~function~> ()
+ end
end
local _, <!f2!> = f()