diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-08-20 09:46:49 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-08-20 09:46:49 +0800 |
| commit | eba73a696c65932534fd5aefbe2ca4c7260c0fb6 (patch) | |
| tree | 1a6f740439713b809f4f97a117deaff5b0b57468 /spec/inputs/syntax.moon | |
| parent | 1afca4888b2ee8e49c2e4d0bef478d0728d5ed41 (diff) | |
| download | yuescript-eba73a696c65932534fd5aefbe2ca4c7260c0fb6.tar.gz yuescript-eba73a696c65932534fd5aefbe2ca4c7260c0fb6.tar.bz2 yuescript-eba73a696c65932534fd5aefbe2ca4c7260c0fb6.zip | |
reserve the same Moonscript coma separated expressions behaviors.
Diffstat (limited to 'spec/inputs/syntax.moon')
| -rw-r--r-- | spec/inputs/syntax.moon | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index 9895c44..4435a1e 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon | |||
| @@ -291,13 +291,13 @@ It's OK. | |||
| 291 | func --[[port]] 3000, --[[ip]] "192.168.1.1" | 291 | func --[[port]] 3000, --[[ip]] "192.168.1.1" |
| 292 | 292 | ||
| 293 | f = -> | 293 | f = -> |
| 294 | a,b, | 294 | a,b, \ |
| 295 | c,d, | 295 | c,d, \ |
| 296 | e,f | 296 | e,f |
| 297 | 297 | ||
| 298 | f = -> | 298 | f = -> |
| 299 | a,b | 299 | a,b \ |
| 300 | ,c,d | 300 | ,c,d \ |
| 301 | ,e,f | 301 | ,e,f |
| 302 | 302 | ||
| 303 | with obj | 303 | with obj |
| @@ -369,13 +369,13 @@ do | |||
| 369 | a = f2! | 369 | a = f2! |
| 370 | - 1 |> f2 | 370 | - 1 |> f2 |
| 371 | 371 | ||
| 372 | _1 | 372 | _1 \ |
| 373 | ,_2 | 373 | ,_2 \ |
| 374 | ,_3 | 374 | ,_3 \ |
| 375 | ,_4 = 1 | 375 | ,_4 = 1 \ |
| 376 | ,f 2 | 376 | ,f 2 \ |
| 377 | ,3 | 377 | ,3 \ |
| 378 | ,f 4, | 378 | ,f 4, \ |
| 379 | 4 | 379 | 4 |
| 380 | 380 | ||
| 381 | nil | 381 | nil |
