diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-15 14:07:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-15 14:07:14 +0800 |
commit | a4bff71503fcf5d5a1bff8dc3ce209050afea86c (patch) | |
tree | 06fe335cfdfc7dbb24f958d63fd9c99a06843704 /server/test | |
parent | 8e9d309bf2a3b3e3f4530acb2cbaa3cdd6869cee (diff) | |
download | lua-language-server-a4bff71503fcf5d5a1bff8dc3ce209050afea86c.zip |
_G的处理
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/definition/set.lua | 5 | ||||
-rw-r--r-- | server/test/diagnostics/init.lua | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/server/test/definition/set.lua b/server/test/definition/set.lua index 82dc4828..eb899fc9 100644 --- a/server/test/definition/set.lua +++ b/server/test/definition/set.lua @@ -38,3 +38,8 @@ else end print(<?x?>) ]] + +TEST [[ +_G.<!x!> = 1 +print(<?x?>) +]] diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 8c2f4dba..4af8f975 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -119,12 +119,12 @@ local _ENV ]] TEST [[ -print(_G) +print() <!('string')!>:sub(1, 1) ]] TEST [[ -print(_G) +print() ('string') ]] |