summaryrefslogtreecommitdiff
path: root/test-beta/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-13 17:33:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-13 17:33:36 +0800
commite2247e00da2e61700e9a981ad1d5bfe70d0cbfa0 (patch)
treeffe614e5b8027e13edcdad6c4cd3204259c03698 /test-beta/crossfile
parent769b86902f12fe9b91659ad1ba9abab81ccf5baa (diff)
downloadlua-language-server-e2247e00da2e61700e9a981ad1d5bfe70d0cbfa0.zip
支持return
Diffstat (limited to 'test-beta/crossfile')
-rw-r--r--test-beta/crossfile/references.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test-beta/crossfile/references.lua b/test-beta/crossfile/references.lua
index e797b48c..07166c3d 100644
--- a/test-beta/crossfile/references.lua
+++ b/test-beta/crossfile/references.lua
@@ -199,6 +199,25 @@ TEST {
{
path = 'a.lua',
content = [[
+ local m = {}
+ function m.<?func?>()
+ end
+ return m
+ ]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local t = require 'a'
+ t.<!func!>()
+ ]],
+ },
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
return <?function () end?>
]],
},