diff options
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 | |||