summaryrefslogtreecommitdiff
path: root/test-beta/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-12 20:06:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-12 20:06:00 +0800
commit769b86902f12fe9b91659ad1ba9abab81ccf5baa (patch)
tree3c2d7adf27cf8b0cfddffec52465688f5ca5bb2e /test-beta/crossfile
parentde37c136fb0423794bdc8fcdc76eb5772d2bcaa7 (diff)
downloadlua-language-server-769b86902f12fe9b91659ad1ba9abab81ccf5baa.zip
锁复制错了
Diffstat (limited to 'test-beta/crossfile')
-rw-r--r--test-beta/crossfile/references.lua35
1 files changed, 31 insertions, 4 deletions
diff --git a/test-beta/crossfile/references.lua b/test-beta/crossfile/references.lua
index ffada8f5..e797b48c 100644
--- a/test-beta/crossfile/references.lua
+++ b/test-beta/crossfile/references.lua
@@ -250,11 +250,38 @@ TEST {
{
path = 'a.lua',
content = [[
+ local function <?f?>()
+ end
+
+ return {
+ f = <!f!>,
+ }
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local t = require 'a'
+ local <!f!> = t.f
+
+ <!f!>()
+
+ return {
+ f = <!f!>,
+ }
+ ]]
+ }
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
local function <!f!>()
end
return {
- <!f!> = <!f!>,
+ f = <!f!>,
}
]]
},
@@ -267,7 +294,7 @@ TEST {
<!f!>()
return {
- <!f!> = <!f!>,
+ f = <!f!>,
}
]]
},
@@ -275,12 +302,12 @@ TEST {
path = 'b.lua',
content = [[
local t = require 'a'
- local <!f!> = t.<!f!>
+ local <!f!> = t.f
<?f?>()
return {
- <!f!> = <!f!>,
+ f = <!f!>,
}
]]
}