diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-04 20:59:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-04 20:59:09 +0800 |
commit | 74c45cc113e0f6cc1bb0bbf4963c490312cbfbe2 (patch) | |
tree | 093cf553943d2bcd94afaf559b53bab381323a05 /test/crossfile | |
parent | e1acf151c0da1aa01c39d10d0fab885f4c98f6cd (diff) | |
parent | db575065af7c0fab76f6d3d7964ae84244757c91 (diff) | |
download | lua-language-server-74c45cc113e0f6cc1bb0bbf4963c490312cbfbe2.zip |
Merge commit 'db575065af7c0fab76f6d3d7964ae84244757c91' into multi-workspace
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/references.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua index ec02eef7..18e9c5f9 100644 --- a/test/crossfile/references.lua +++ b/test/crossfile/references.lua @@ -183,3 +183,22 @@ TEST { ]] } } + +TEST { + { + path = 'a.lua', + content = [[ + local t = {} + t.<~x~> = 1 + return t + ]] + }, + { + path = 'b.lua', + content = [[ + local t = require 'a' + + print(t.<!x!>) + ]] + } +} |