branch: elpa/scala-mode commit f61e32dc3d2549f818d815a9d98ac5c893f3c8bc Author: Heikki Vesalainen <heikkivesalai...@yahoo.com> Commit: Heikki Vesalainen <heikkivesalai...@yahoo.com>
Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 392cc1c..14484c6 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,17 @@ val x = 20 + ``` The *reluctant* mode (default) will not indent the line in either -case. +case. However, all three modes will indent the second line in these +examples as specified by the *Scala Language Specification*, section +1.2. + +``` +val x = List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9). + map (x => x + 1) // last token of previous line can not terminate a statement + +val y = (List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + map (x => x + 1)) // inside 'newlines disabled' region +``` You can use empty lines in *eager* mode to stop it from indenting a line. For example