diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 17:05:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 17:57:29 +0800 |
commit | cd370225fc4eaf6e2f6baadfb5a8501943c86783 (patch) | |
tree | a9f0bf348e310c177e14a946b510759193ecfcd1 /test/diagnostics/lowercase-global.lua | |
parent | 6fe0ea884f692a460cdf084c28900fc44dec0018 (diff) | |
download | lua-language-server-cd370225fc4eaf6e2f6baadfb5a8501943c86783.zip |
cleanup tests
Diffstat (limited to 'test/diagnostics/lowercase-global.lua')
-rw-r--r-- | test/diagnostics/lowercase-global.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/diagnostics/lowercase-global.lua b/test/diagnostics/lowercase-global.lua index 5e1d70a9..bf73b8c8 100644 --- a/test/diagnostics/lowercase-global.lua +++ b/test/diagnostics/lowercase-global.lua @@ -4,3 +4,36 @@ tostring = 1 ROOT = 1 _G.bb = 1 ]] + +TEST [[ +---@diagnostic disable-next-line +x = 1 +]] + +TEST [[ +---@diagnostic disable-next-line: lowercase-global +x = 1 +]] + +TEST [[ +---@diagnostic disable-next-line: unused-local +<!x!> = 1 +]] + +TEST [[ +---@diagnostic disable +x = 1 +]] + +TEST [[ +---@diagnostic disable +---@diagnostic enable +<!x!> = 1 +]] + +TEST [[ +---@diagnostic disable +---@diagnostic disable +---@diagnostic enable +x = 1 +]] |