From cd827731ca155f198d26b61a0965469560e1bb34 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 19 Nov 2023 04:01:01 +0800 Subject: make function call args a consistent behavior with table list. --- spec/inputs/whitespace.yue | 23 +++++++++++++++++++++++ spec/outputs/whitespace.lua | 12 ++++++++++++ 2 files changed, 35 insertions(+) (limited to 'spec') 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( c(one, two, three, four) +d( + one -- one + two -- two + three -- three + four -- four +) + +e( + -> + -> + -> +) +e{ + -> + -> + -> +} +e[ + -> + -> + -> +] + -- v = -> 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 a(one, two, three) b(one, two, three) c(one, two, three, four) +d(one, two, three, four) +e(function() end, function() end, function() end) +e({ + function() end, + function() end, + function() end +}) +e({ + function() end, + function() end, + function() end +}) local v v = function() return a, b, c -- cgit v1.2.3-55-g6feb