From cd2b60b101a398cb9356d746364e70eaed1860f1 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 22 Jun 2020 16:50:40 +0800 Subject: add support for local variable declared with attribute 'close' and 'const' for Lua 5.4. --- spec/inputs/backcall.moon | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/inputs/backcall.moon') diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon index b6fe24f..86b0ba3 100644 --- a/spec/inputs/backcall.moon +++ b/spec/inputs/backcall.moon @@ -79,7 +79,7 @@ do f7! do - {:result,:msg} = do + :result,:msg = do (data)<- receiveAsync "filename.txt" print data (info)<- processAsync data @@ -107,6 +107,10 @@ alert "hi" x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y +x1 = 3 * -4 |> f + +x2 = 3 * -2 ^ 2 |> f + y = 1 + not # 2 |> (a ^ c) |> b(3,_) * 4 ^ -123 |> f |> f1 or 123 nil -- cgit v1.2.3-55-g6feb