diff options
Diffstat (limited to 'spec/inputs/syntax.moon')
| -rw-r--r-- | spec/inputs/syntax.moon | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index ccee5f2..a781aa3 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon | |||
| @@ -284,8 +284,8 @@ z = a- b | |||
| 284 | str = --[[ | 284 | str = --[[ |
| 285 | This is a multi line comment. | 285 | This is a multi line comment. |
| 286 | It's OK. | 286 | It's OK. |
| 287 | ]] strA \ -- comment 1 | 287 | ]] strA -- comment 1 |
| 288 | .. strB \ -- comment 2 | 288 | .. strB -- comment 2 |
| 289 | .. strC | 289 | .. strC |
| 290 | 290 | ||
| 291 | func --[[port]] 3000, --[[ip]] "192.168.1.1" | 291 | func --[[port]] 3000, --[[ip]] "192.168.1.1" |
| @@ -296,51 +296,54 @@ f = -> | |||
| 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 |
| 304 | invoke \ | 304 | invoke( |
| 305 | --[[arg1]] \func!, | 305 | --[[arg1]] \func!, |
| 306 | --[[arg2]] 123, | 306 | --[[arg2]] 123, |
| 307 | --[[arg3]] "abc" | 307 | --[[arg3]] "abc" |
| 308 | ) | ||
| 308 | 309 | ||
| 309 | invokeA \ | 310 | invokeA( |
| 310 | invokeB \ | 311 | invokeB( |
| 311 | invokeC 123 | 312 | invokeC 123 |
| 313 | ) | ||
| 314 | ) | ||
| 312 | 315 | ||
| 313 | 123 \ | 316 | 123 |
| 314 | |> invokeC \ | 317 | |> invokeC |
| 315 | |> invokeB \ | 318 | |> invokeB |
| 316 | |> invokeA | 319 | |> invokeA |
| 317 | 320 | ||
| 318 | v = { | 321 | v = { |
| 319 | a -1 | 322 | a -1 |
| 320 | a\ | 323 | a( |
| 321 | -1 | 324 | -1) |
| 322 | a\ | 325 | a |
| 323 | - 1 | 326 | - 1 |
| 324 | a-1 | 327 | a-1 |
| 325 | a - 1 | 328 | a - 1 |
| 326 | a - | 329 | a - |
| 327 | 1 | 330 | 1 |
| 328 | a -\ | 331 | a- |
| 329 | 1 | 332 | 1 |
| 330 | a - --[[123]]1 | 333 | a - --[[123]]1 |
| 331 | 334 | ||
| 332 | a ~1 | 335 | a ~1 |
| 333 | a\ | 336 | a( |
| 334 | ~1 | 337 | ~1) |
| 335 | a\ | 338 | a |
| 336 | ~ 1 | 339 | ~ 1 |
| 337 | a~1 | 340 | a~1 |
| 338 | a ~ 1 | 341 | a ~ 1 |
| 339 | a ~ | 342 | a ~ |
| 340 | 1 | 343 | 1 |
| 341 | a ~\ | 344 | a~ |
| 342 | 1 | 345 | 1 |
| 343 | a ~--[[123]]1 | 346 | a ~ --[[123]]1 |
| 344 | } | 347 | } |
| 345 | 348 | ||
| 346 | nil | 349 | nil |
