From 337a90407fd11ede8f184cdd6e223ee47c8e1193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 14 Apr 2021 20:43:41 +0800 Subject: stash --- test/basic/linker.lua | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'test/basic') 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 [[ +:::: +goto label +]] { + id = '5', + loc = true, +} -]] +TEST [[ +::label:: +goto +]] { + id = '3', + loc = true, +} -- cgit v1.2.3