diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-02-02 22:27:42 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-02-02 22:27:42 +0800 |
| commit | aa57156b2c711bf4781d097d4748e9bc57f937b8 (patch) | |
| tree | 382e2bfc6be8c855cdf2b7af9f287db1b1f76421 /spec | |
| parent | 57191ed45bb7bd0ffcd917f00df2e940c900fb3c (diff) | |
| download | yuescript-aa57156b2c711bf4781d097d4748e9bc57f937b8.tar.gz yuescript-aa57156b2c711bf4781d097d4748e9bc57f937b8.tar.bz2 yuescript-aa57156b2c711bf4781d097d4748e9bc57f937b8.zip | |
add MultiLineComment support in EscapeNewLine.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/syntax.moon | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index 3ac9991..abee3e3 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon | |||
| @@ -280,3 +280,25 @@ It's OK. | |||
| 280 | 280 | ||
| 281 | func --[[port]] 3000, --[[ip]] "192.168.1.1" | 281 | func --[[port]] 3000, --[[ip]] "192.168.1.1" |
| 282 | 282 | ||
| 283 | f = -> | ||
| 284 | a,b, \ | ||
| 285 | c,d, \ | ||
| 286 | e,f | ||
| 287 | |||
| 288 | with obj | ||
| 289 | invoke \ | ||
| 290 | --[[arg1]] \func!, | ||
| 291 | --[[arg2]] 123, | ||
| 292 | --[[arg3]] "abc" | ||
| 293 | |||
| 294 | invokeA \ | ||
| 295 | invokeB \ | ||
| 296 | invokeC 123 | ||
| 297 | |||
| 298 | 123 \ | ||
| 299 | |> invokeC \ | ||
| 300 | |> invokeB \ | ||
| 301 | |> invokeA | ||
| 302 | |||
| 303 | nil | ||
| 304 | |||
