OxL Reference

1.2 Statement termination

A statement is terminated by ; or by a line break. A line break does NOT terminate a statement if at least one of the following holds:

  1. it is inside an unclosed ( or [;
  2. the last token of the line is a binary operator, ,, =, =>, ->, ?->, ~>, !>, |>, :;
  3. the first token of the next line is ., ?., ->, ?->, ~>, !>, |>, ??, &&, ||, within, retry, else, undo, on_error.

This way chains can be wrapped by starting a line with an operator. The same rules apply inside { }.

See also

Source: docs/spec/oxl-standard.en.md