aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/syntax.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2024-09-26 22:11:13 +0800
committerLi Jin <dragon-fly@qq.com>2024-09-26 22:11:13 +0800
commit7575fe00aad91e0ba943e877ddcd838f76e095c0 (patch)
treecc1da50dddf61e77f33c026e38afe4ac2ad7d904 /spec/inputs/syntax.yue
parent461bf7c32408553125d71b23e04e21fed690c4f5 (diff)
downloadyuescript-0.25.2.tar.gz
yuescript-0.25.2.tar.bz2
yuescript-0.25.2.zip
Fixed a few issues.v0.25.2
* 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.
Diffstat (limited to 'spec/inputs/syntax.yue')
-rw-r--r--spec/inputs/syntax.yue4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue
index 271f43f..a414d6f 100644
--- a/spec/inputs/syntax.yue
+++ b/spec/inputs/syntax.yue
@@ -52,9 +52,9 @@ _ = ->
52 52
53_ = -> 1,2,34 53_ = -> 1,2,34
54 54
55return 5 + () -> 4 + 2 55do return 5 + () -> 4 + 2
56 56
57return 5 + (() -> 4) + 2 57do return 5 + (() -> 4) + 2
58 58
59print 5 + () -> 59print 5 + () ->
60 _ = 34 60 _ = 34