diff options
author | Li Jin <dragon-fly@qq.com> | 2020-02-03 11:25:11 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-02-03 11:25:11 +0800 |
commit | d8901102a1e39e651b08b66257c176b5803b9bc0 (patch) | |
tree | 8df65bfdcae6a65e5f6d0189b0745df521ca1bf9 /spec/inputs/syntax.moon | |
parent | 6eb2c2a58f36196d162433b5412b15aea1e6ba9e (diff) | |
download | yuescript-d8901102a1e39e651b08b66257c176b5803b9bc0.tar.gz yuescript-d8901102a1e39e651b08b66257c176b5803b9bc0.tar.bz2 yuescript-d8901102a1e39e651b08b66257c176b5803b9bc0.zip |
enable explist to be multi-line without backslash. confirmed there is no similar issue like Moonscript issue 202 or issue 391.
Diffstat (limited to 'spec/inputs/syntax.moon')
-rw-r--r-- | spec/inputs/syntax.moon | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index abee3e3..ae3fc0c 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon | |||
@@ -281,10 +281,15 @@ It's OK. | |||
281 | func --[[port]] 3000, --[[ip]] "192.168.1.1" | 281 | func --[[port]] 3000, --[[ip]] "192.168.1.1" |
282 | 282 | ||
283 | f = -> | 283 | f = -> |
284 | a,b, \ | 284 | a,b, |
285 | c,d, \ | 285 | c,d, |
286 | e,f | 286 | e,f |
287 | 287 | ||
288 | f = -> | ||
289 | a,b \ | ||
290 | ,c,d \ | ||
291 | ,e,f | ||
292 | |||
288 | with obj | 293 | with obj |
289 | invoke \ | 294 | invoke \ |
290 | --[[arg1]] \func!, | 295 | --[[arg1]] \func!, |