diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-29 15:28:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-29 15:28:02 +0800 |
commit | 1a1d1ce6c259814eb276567450be0d05853cbc56 (patch) | |
tree | 93162fb19e9668cd88fbe9160592c18ab1ecf006 /server/test/diagnostics/init.lua | |
parent | c0f1352581b5a4b046fc775c066feacf576156ba (diff) | |
download | lua-language-server-1a1d1ce6c259814eb276567450be0d05853cbc56.zip |
修正未定义全局变量找的不正确的问题
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r-- | server/test/diagnostics/init.lua | 7 |
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) ]] |