Added tests for the semicolon insertion

This commit is contained in:
Nathan DECHER 2020-04-30 23:54:00 +02:00 committed by leaf
parent 4ff4077a21
commit 0ac82e3af5
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,8 @@
a = 'b'
c = d
(a b) c d
import c from d
(a b) c d
(c d) a b
a, b = c, d
(d a) c

View File

@ -0,0 +1,6 @@
x = {
hello
(one)
(two)
three()
}

View File

@ -0,0 +1,9 @@
local a = 'b'
local c = d;
(a(b))(c(d))
c = d.c;
(a(b))(c(d));
(c(d))(a(b))
local b
a, b = c, d
return (d(a))(c)

View File

@ -0,0 +1,6 @@
local x = {
hello,
(one),
(two),
three()
}