diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-13 17:33:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-13 17:33:36 +0800 |
commit | e2247e00da2e61700e9a981ad1d5bfe70d0cbfa0 (patch) | |
tree | ffe614e5b8027e13edcdad6c4cd3204259c03698 /test-beta/crossfile | |
parent | 769b86902f12fe9b91659ad1ba9abab81ccf5baa (diff) | |
download | lua-language-server-e2247e00da2e61700e9a981ad1d5bfe70d0cbfa0.zip |
支持return
Diffstat (limited to 'test-beta/crossfile')
-rw-r--r-- | test-beta/crossfile/references.lua | 19 |
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?> ]], }, |