From acf20e1802b03fed63b845ac8c0274fff415fb22 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 6 Aug 2020 12:11:01 +0800 Subject: fix a case multiline binary operator expression conflicts with new statement started with an unary expression. --- spec/inputs/syntax.moon | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'spec') diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index a781aa3..80b762c 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon @@ -346,5 +346,28 @@ v = { a ~ --[[123]]1 } +do + a = 1 + + 2 + * 3 / + 4 + + _1 = f1 -1 + + 2 + + 3 + + _2 = f1 - 1 + + 2 + + 3 + + f2 = (x)-> print x + +1 + + a = f2! + -1 |> f2 + + a = f2! + - 1 |> f2 + nil -- cgit v1.2.3-55-g6feb