summaryrefslogtreecommitdiff
path: root/test/basic
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-13 17:06:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-13 17:06:15 +0800
commit63b8bbe46c4815c2885776aefed96b8cb8aaf9f5 (patch)
tree46bf5237866d0b815a4780e9f876e5419376b885 /test/basic
parentbd8b30417e87959510545847d4db580d34603943 (diff)
downloadlua-language-server-63b8bbe46c4815c2885776aefed96b8cb8aaf9f5.zip
stash
Diffstat (limited to 'test/basic')
-rw-r--r--test/basic/linker.lua37
1 files changed, 36 insertions, 1 deletions
diff --git a/test/basic/linker.lua b/test/basic/linker.lua
index e663579e..5fd48ce4 100644
--- a/test/basic/linker.lua
+++ b/test/basic/linker.lua
@@ -36,5 +36,40 @@ end
TEST [[
local <?x?>
]] {
- id = 'l9x',
+ id = '9',
+}
+
+TEST [[
+local x
+print(<?x?>)
+]] {
+ id = '7',
+}
+
+TEST [[
+local x
+<?x?> = 1
+]] {
+ id = '7',
+}
+
+TEST [[
+print(<?X?>)
+]] {
+ id = '"X"',
+ global = true,
+}
+
+TEST [[
+print(<?X?>)
+]] {
+ id = '"X"',
+ global = true,
+}
+
+TEST [[
+local x
+print(x.y.<?z?>)
+]] {
+ id = '7|"y"|"z"',
}