aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/whitespace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/whitespace.lua')
-rw-r--r--spec/outputs/whitespace.lua98
1 files changed, 98 insertions, 0 deletions
diff --git a/spec/outputs/whitespace.lua b/spec/outputs/whitespace.lua
new file mode 100644
index 0000000..1bc4503
--- /dev/null
+++ b/spec/outputs/whitespace.lua
@@ -0,0 +1,98 @@
1local _ = {
2 1,
3 2
4}
5_ = {
6 1,
7 2
8}
9_ = {
10 1,
11 2
12}
13_ = {
14 1,
15 2
16}
17_ = {
18 1,
19 2
20}
21_ = {
22 something(1, 2, 4, 5, 6),
23 3,
24 4,
25 5
26}
27_ = {
28 a(1, 2, 3),
29 4,
30 5,
31 6,
32 1,
33 2,
34 3
35}
36_ = {
37 b(1, 2, 3, 4, 5, 6),
38 1,
39 2,
40 3,
41 1,
42 2,
43 3
44}
45_ = {
46 1,
47 2,
48 3
49}
50_ = {
51 c(1, 2, 3)
52}
53hello(1, 2, 3, 4, 1, 2, 3, 4, 4, 5)
54x(1, 2, 3, 4, 5, 6)
55hello(1, 2, 3, world(4, 5, 6, 5, 6, 7, 8))
56hello(1, 2, 3, world(4, 5, 6, 5, 6, 7, 8), 9, 9)
57_ = {
58 hello(1, 2),
59 3,
60 4,
61 5,
62 6
63}
64local x = {
65 hello(1, 2, 3, 4, 5, 6, 7),
66 1,
67 2,
68 3,
69 4
70}
71if hello(1, 2, 3, world, world) then
72 print("hello")
73end
74if hello(1, 2, 3, world, world) then
75 print("hello")
76end
77a(one, two, three)
78b(one, two, three)
79c(one, two, three, four)
80local v
81v = function()
82 return a, b, c
83end
84local v1, v2, v3
85v1, v2, v3 = function()
86 return a
87end, b, c
88local a, b, c, d, e, f = 1, f2({
89 abc = abc
90}), 3, 4, f5(abc), 6
91for a, b, c in pairs(tb) do
92 print(a, b, c)
93end
94for i = 1, 10, -1 do
95 print(i)
96end
97local a, b, c
98return nil