diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-14 20:43:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-14 20:43:41 +0800 |
commit | 337a90407fd11ede8f184cdd6e223ee47c8e1193 (patch) | |
tree | f991c125ab200ae3c41bedda8c27354acfd6990d /test | |
parent | ede808fe32a66ac828762818bf43d18fc343c159 (diff) | |
download | lua-language-server-337a90407fd11ede8f184cdd6e223ee47c8e1193.zip |
stash
Diffstat (limited to 'test')
-rw-r--r-- | test/basic/linker.lua | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/basic/linker.lua b/test/basic/linker.lua index 0be93e8d..bf52c949 100644 --- a/test/basic/linker.lua +++ b/test/basic/linker.lua @@ -12,7 +12,9 @@ local function getSource(pos) or source.type == 'setglobal' or source.type == 'getglobal' or source.type == 'field' - or source.type == 'method' then + or source.type == 'method' + or source.type == 'label' + or source.type == 'goto' then return source end end) @@ -136,5 +138,17 @@ end } TEST [[ +::<?label?>:: +goto label +]] { + id = '5', + loc = true, +} -]] +TEST [[ +::label:: +goto <?label?> +]] { + id = '3', + loc = true, +} |