diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-15 18:03:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-15 18:03:34 +0800 |
commit | 2426bbe0758801ecfe4369d72f6755e9ef193cc5 (patch) | |
tree | 28fd3385b767b6eea451b1cbc95bce624ce9a879 /test/diagnostics/init.lua | |
parent | 4e68872ea96a53f9c7ad5e11c83794b92f477fb4 (diff) | |
download | lua-language-server-2426bbe0758801ecfe4369d72f6755e9ef193cc5.zip |
diagnostic: improve `newline-call`
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 6f250543..e8cc76e4 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -230,8 +230,8 @@ _ENV = nil config.config.diagnostics.disable['undefined-env-child'] = nil TEST [[ -print() -<!('string')!>:sub(1, 1) +<!print() +('string')!>:sub(1, 1) ]] TEST [[ @@ -240,6 +240,12 @@ print() ]] TEST [[ +pairs +{} +{} +]] + +TEST [[ local x return x : f(1) @@ -357,14 +363,6 @@ TEST [[ <!local function f() end!> ]] ---TEST [[ ---F = <!function () end!> ---]] --- ---TEST [[ ---<!function F() end!> ---]] - config.config.diagnostics.disable['unused-local'] = nil TEST [[ local mt, x |