summaryrefslogtreecommitdiff
path: root/server-beta/test/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-10 16:03:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-10 16:03:28 +0800
commitc80ebc80ec68909cb890cccba05ba5fded59b645 (patch)
tree3687a0438d81b2aebb013557798b773076e922fa /server-beta/test/definition
parent63f8fe059b3b429baf0e10969a259beecaddbaad (diff)
downloadlua-language-server-c80ebc80ec68909cb890cccba05ba5fded59b645.zip
支持_G
Diffstat (limited to 'server-beta/test/definition')
-rw-r--r--server-beta/test/definition/set.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/server-beta/test/definition/set.lua b/server-beta/test/definition/set.lua
index ccb44438..b1d9dc70 100644
--- a/server-beta/test/definition/set.lua
+++ b/server-beta/test/definition/set.lua
@@ -44,12 +44,12 @@ _ENV.<!x!> = 1
print(<?x?>)
]]
---TEST [[
---<!_G.x!> = 1
---print(<?x?>)
---]]
---
---TEST [[
---<!rawset(_G, 'x', 1)!>
---print(<?x?>)
---]]
+TEST [[
+_G.<!x!> = 1
+print(<?x?>)
+]]
+
+TEST [[
+<!rawset(_G, 'x', 1)!>
+print(<?x?>)
+]]