summaryrefslogtreecommitdiff
path: root/spec/outputs/whitespace.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
committerLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
commit60a979e224f26117f5be82bfca757a2483cef0fd (patch)
tree7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/whitespace.lua
parenta19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff)
downloadyuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip
fix test.
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