diff options
Diffstat (limited to 'spec/inputs/whitespace.moon')
-rw-r--r-- | spec/inputs/whitespace.moon | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/spec/inputs/whitespace.moon b/spec/inputs/whitespace.moon new file mode 100644 index 0000000..4a2ff1f --- /dev/null +++ b/spec/inputs/whitespace.moon | |||
@@ -0,0 +1,102 @@ | |||
1 | |||
2 | { | ||
3 | 1, 2 | ||
4 | } | ||
5 | |||
6 | { 1, 2 | ||
7 | } | ||
8 | |||
9 | { 1, 2 } | ||
10 | |||
11 | {1,2} | ||
12 | |||
13 | { | ||
14 | 1,2 | ||
15 | |||
16 | } | ||
17 | |||
18 | { something 1,2, | ||
19 | 4,5,6, | ||
20 | 3,4,5 | ||
21 | } | ||
22 | |||
23 | { | ||
24 | a 1,2,3, | ||
25 | 4,5,6 | ||
26 | 1,2,3 | ||
27 | } | ||
28 | |||
29 | |||
30 | { | ||
31 | b 1,2,3, | ||
32 | 4,5,6 | ||
33 | 1,2,3, | ||
34 | 1,2,3 | ||
35 | } | ||
36 | |||
37 | { 1,2,3 } | ||
38 | |||
39 | { c 1,2,3, | ||
40 | } | ||
41 | |||
42 | |||
43 | hello 1,2,3,4, | ||
44 | 1,2,3,4,4,5 | ||
45 | |||
46 | x 1, | ||
47 | 2, 3, | ||
48 | 4, 5, 6 | ||
49 | |||
50 | |||
51 | hello 1,2,3, | ||
52 | world 4,5,6, | ||
53 | 5,6,7,8 | ||
54 | |||
55 | hello 1,2,3, | ||
56 | world 4,5,6, | ||
57 | 5,6,7,8, | ||
58 | 9,9 | ||
59 | |||
60 | |||
61 | { | ||
62 | hello 1,2, | ||
63 | 3,4, | ||
64 | 5, 6 | ||
65 | } | ||
66 | |||
67 | x = { | ||
68 | hello 1,2,3,4, | ||
69 | 5,6,7 | ||
70 | 1,2,3,4 | ||
71 | } | ||
72 | |||
73 | if hello 1,2,3, | ||
74 | world, | ||
75 | world | ||
76 | print "hello" | ||
77 | |||
78 | if hello 1,2,3, | ||
79 | world, | ||
80 | world | ||
81 | print "hello" | ||
82 | |||
83 | |||
84 | -- | ||
85 | |||
86 | a( | ||
87 | one, two, three | ||
88 | ) | ||
89 | |||
90 | b( | ||
91 | one, | ||
92 | two, | ||
93 | three | ||
94 | ) | ||
95 | |||
96 | |||
97 | c(one, two, | ||
98 | three, four) | ||
99 | |||
100 | -- | ||
101 | |||
102 | nil | ||