From a4bbfc61a8973ad029bd7d7908bf2c24398c0715 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 20 Feb 2020 14:43:34 +0800 Subject: allow value lists in for statement and in local statement to be multiline got Moonscript issue 390 fixed. --- spec/inputs/whitespace.moon | 39 ++++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) (limited to 'spec') diff --git a/spec/inputs/whitespace.moon b/spec/inputs/whitespace.moon index 0422443..06b8773 100644 --- a/spec/inputs/whitespace.moon +++ b/spec/inputs/whitespace.moon @@ -99,16 +99,41 @@ c(one, two, -- -f = -> +v = -> a, b, c -a, - b, - c = 1, - 2, - f - :abc +v1, v2, + v3 = -> + a; + b, + c + +a, b, + c, d, +e, f = 1, + f2 + :abc; + 3, + 4, + f5 abc; + 6 + +for a, + b, + c in pairs tb + print a, + b, + c + +for i = 1, + 10, + -1 + print i + +local a, + b, + c nil -- cgit v1.2.3-55-g6feb