From 7575fe00aad91e0ba943e877ddcd838f76e095c0 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 26 Sep 2024 22:11:13 +0800 Subject: Fixed a few issues. * Fixed a `with` block with return statement issue. * Fixed a switch-when indentation issue. * Added error reporting for `return` statement not appearing in last block line. --- spec/inputs/unicode/syntax.yue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/inputs/unicode') diff --git a/spec/inputs/unicode/syntax.yue b/spec/inputs/unicode/syntax.yue index f382688..8a98416 100644 --- a/spec/inputs/unicode/syntax.yue +++ b/spec/inputs/unicode/syntax.yue @@ -51,9 +51,9 @@ _ = -> _ = -> 1,2,34 -return 5 + () -> 4 + 2 +do return 5 + () -> 4 + 2 -return 5 + (() -> 4) + 2 +do return 5 + (() -> 4) + 2 打印 5 + () -> _ = 34 -- cgit v1.2.3-55-g6feb