diff options
| author | Li Jin <dragon-fly@qq.com> | 2024-09-26 22:11:13 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2024-09-26 22:11:13 +0800 |
| commit | 7575fe00aad91e0ba943e877ddcd838f76e095c0 (patch) | |
| tree | cc1da50dddf61e77f33c026e38afe4ac2ad7d904 /spec/inputs/unicode | |
| parent | 461bf7c32408553125d71b23e04e21fed690c4f5 (diff) | |
| download | yuescript-7575fe00aad91e0ba943e877ddcd838f76e095c0.tar.gz yuescript-7575fe00aad91e0ba943e877ddcd838f76e095c0.tar.bz2 yuescript-7575fe00aad91e0ba943e877ddcd838f76e095c0.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/unicode')
| -rw-r--r-- | spec/inputs/unicode/syntax.yue | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ _ = -> | |||
| 51 | 51 | ||
| 52 | _ = -> 1,2,34 | 52 | _ = -> 1,2,34 |
| 53 | 53 | ||
| 54 | return 5 + () -> 4 + 2 | 54 | do return 5 + () -> 4 + 2 |
| 55 | 55 | ||
| 56 | return 5 + (() -> 4) + 2 | 56 | do return 5 + (() -> 4) + 2 |
| 57 | 57 | ||
| 58 | 打印 5 + () -> | 58 | 打印 5 + () -> |
| 59 | _ = 34 | 59 | _ = 34 |
