diff options
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/definition/init.lua | 1 | ||||
-rw-r--r-- | server/test/definition/label.lua | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua index c13f1fb1..7d4549a1 100644 --- a/server/test/definition/init.lua +++ b/server/test/definition/init.lua @@ -61,4 +61,5 @@ require 'definition.arg' require 'definition.function' require 'definition.table' require 'definition.method' +require 'definition.label' require 'definition.bug' diff --git a/server/test/definition/label.lua b/server/test/definition/label.lua new file mode 100644 index 00000000..27a1ac7f --- /dev/null +++ b/server/test/definition/label.lua @@ -0,0 +1,23 @@ +TEST [[ +::<!LABEL!>:: +goto <?LABEL?> +]] + +TEST [[ +goto <?LABEL?> +::<!LABEL!>:: +]] + +TEST [[ +::LABEL:: +function _() + goto <?LABEL?> +end +]] + +TEST [[ +do + goto <?LABEL?> +end +::<!LABEL!>:: +]] |