emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/scala-mode f61e32d 047/217: Update README.md


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode f61e32d 047/217: Update README.md
Date: Sun, 29 Aug 2021 11:30:41 -0400 (EDT)

branch: elpa/scala-mode
commit f61e32dc3d2549f818d815a9d98ac5c893f3c8bc
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]