summaryrefslogtreecommitdiff
path: root/server/test/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-29 15:28:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-29 15:28:02 +0800
commit1a1d1ce6c259814eb276567450be0d05853cbc56 (patch)
tree93162fb19e9668cd88fbe9160592c18ab1ecf006 /server/test/diagnostics/init.lua
parentc0f1352581b5a4b046fc775c066feacf576156ba (diff)
downloadlua-language-server-1a1d1ce6c259814eb276567450be0d05853cbc56.zip
修正未定义全局变量找的不正确的问题
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r--server/test/diagnostics/init.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 7bba139d..a6dc6d93 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -72,7 +72,7 @@ print(<!X!>)
print(<!Log!>)
print(_VERSION)
print(<!y!>)
-print(Z)
+print(<!Z!>)
Z = 1
]]
@@ -119,6 +119,11 @@ local _ENV
]]
TEST [[
+print(1)
+_ENV = nil
+]]
+
+TEST [[
print()
<!('string')!>:sub(1, 1)
]]