diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/definition/init.lua | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/test/definition/init.lua b/test/definition/init.lua index 14efa03f..c2f2b974 100644 --- a/test/definition/init.lua +++ b/test/definition/init.lua @@ -26,3 +26,68 @@ test [[ function <!x!> () end <?x?> = 1 ]] + +test [[ +local function <!x!> () end +<?x?> = 1 +]] + +test [[ +local x +local <!x!> +<?x?> = 1 +]] + +test [[ +local <!x!> +do + <?x?> = 1 +end +]] + +test [[ +local <!x!> +do + local x +end +<?x?> = 1 +]] + +test [[ +local <!x!> +if <?x?> then + local x +end +]] + +test[[ +local <!x!> +if x then + local x +elseif <?x?> then + local x +end +]] + +test[[ +local <!x!> +if x then + local x +elseif x then + local x +else + local x +end +<?x?> = 1 +]] + +test[[ +local <!x!> +if x then + <?x?> = 1 +elseif x then + local x +else + local x +end +]] |