aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-11-19 04:01:01 +0800
committerLi Jin <dragon-fly@qq.com>2023-11-19 04:01:01 +0800
commitcd827731ca155f198d26b61a0965469560e1bb34 (patch)
tree7bf3bc40ab1f09f5c44518370f5c82d0ebbf1709 /spec
parent9dedf0f5172dd653c1d3f34b303d8bd9f5d427bd (diff)
downloadyuescript-cd827731ca155f198d26b61a0965469560e1bb34.tar.gz
yuescript-cd827731ca155f198d26b61a0965469560e1bb34.tar.bz2
yuescript-cd827731ca155f198d26b61a0965469560e1bb34.zip
make function call args a consistent behavior with table list.v0.20.7
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/whitespace.yue23
-rw-r--r--spec/outputs/whitespace.lua12
2 files changed, 35 insertions, 0 deletions
diff --git a/spec/inputs/whitespace.yue b/spec/inputs/whitespace.yue
index 329280f..2655961 100644
--- a/spec/inputs/whitespace.yue
+++ b/spec/inputs/whitespace.yue
@@ -97,6 +97,29 @@ b(
97c(one, two, 97c(one, two,
98 three, four) 98 three, four)
99 99
100d(
101 one -- one
102 two -- two
103 three -- three
104 four -- four
105)
106
107e(
108 ->
109 ->
110 ->
111)
112e{
113 ->
114 ->
115 ->
116}
117e[
118 ->
119 ->
120 ->
121]
122
100-- 123--
101 124
102v = -> 125v = ->
diff --git a/spec/outputs/whitespace.lua b/spec/outputs/whitespace.lua
index 1bc4503..0251968 100644
--- a/spec/outputs/whitespace.lua
+++ b/spec/outputs/whitespace.lua
@@ -77,6 +77,18 @@ end
77a(one, two, three) 77a(one, two, three)
78b(one, two, three) 78b(one, two, three)
79c(one, two, three, four) 79c(one, two, three, four)
80d(one, two, three, four)
81e(function() end, function() end, function() end)
82e({
83 function() end,
84 function() end,
85 function() end
86})
87e({
88 function() end,
89 function() end,
90 function() end
91})
80local v 92local v
81v = function() 93v = function()
82 return a, b, c 94 return a, b, c