summaryrefslogtreecommitdiff
path: root/test/definition/label.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/definition/label.lua')
-rw-r--r--test/definition/label.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/definition/label.lua b/test/definition/label.lua
new file mode 100644
index 00000000..4859d70e
--- /dev/null
+++ b/test/definition/label.lua
@@ -0,0 +1,29 @@
+TEST [[
+::<!LABEL!>::
+goto <?LABEL?>
+]]
+
+TEST [[
+goto <?LABEL?>
+::<!LABEL!>::
+]]
+
+TEST [[
+::LABEL::
+function _()
+ goto <?LABEL?>
+end
+]]
+
+TEST [[
+do
+ goto <?LABEL?>
+end
+::<!LABEL!>::
+]]
+
+TEST [[
+::<!LABEL!>::
+goto <?LABEL?>
+::<!LABEL!>::
+]]