summaryrefslogtreecommitdiff
path: root/server/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-23 16:43:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-23 16:43:23 +0800
commitc6f18e40500e5c1ffd5c27bc589d413804632cb3 (patch)
tree68d0d5137f47e6640e3290e92ddfffbf0a381b27 /server/test/crossfile
parentcbcb02406fc0f317af5bd575515e9881e4bd5a25 (diff)
downloadlua-language-server-c6f18e40500e5c1ffd5c27bc589d413804632cb3.zip
支持全局变量的子项
Diffstat (limited to 'server/test/crossfile')
-rw-r--r--server/test/crossfile/definition.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua
index 6ff0cf32..396f54c5 100644
--- a/server/test/crossfile/definition.lua
+++ b/server/test/crossfile/definition.lua
@@ -212,3 +212,18 @@ TEST {
]],
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ x.<!global!> = 1
+ ]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ print(x.<?global?>)
+ ]],
+ }
+}