aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-08-06 12:11:01 +0800
committerLi Jin <dragon-fly@qq.com>2020-08-06 12:11:01 +0800
commitacf20e1802b03fed63b845ac8c0274fff415fb22 (patch)
treef8410fa73f59ee31814e3b24dc9ec7a959a5a706 /spec
parentcb5371a7dcfde196db07f5a2a3f144888b73d522 (diff)
downloadyuescript-acf20e1802b03fed63b845ac8c0274fff415fb22.tar.gz
yuescript-acf20e1802b03fed63b845ac8c0274fff415fb22.tar.bz2
yuescript-acf20e1802b03fed63b845ac8c0274fff415fb22.zip
fix a case multiline binary operator expression conflicts with new statement started with an unary expression.
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/syntax.moon23
1 files changed, 23 insertions, 0 deletions
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 = {
346 a ~ --[[123]]1 346 a ~ --[[123]]1
347} 347}
348 348
349do
350 a = 1
351 + 2
352 * 3 /
353 4
354
355 _1 = f1 -1
356 + 2
357 + 3
358
359 _2 = f1 - 1
360 + 2
361 + 3
362
363 f2 = (x)-> print x
364 +1
365
366 a = f2!
367 -1 |> f2
368
369 a = f2!
370 - 1 |> f2
371
349nil 372nil
350 373