[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scala-mode b21befd 211/217: Fix README.md indenting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scala-mode b21befd 211/217: Fix README.md indenting |
Date: |
Sun, 29 Aug 2021 11:31:14 -0400 (EDT) |
branch: elpa/scala-mode
commit b21befddf9e567e0978f465a4113162e28fa1a99
Author: Heikki Vesalainen <heikki.vesalainen@trademarknow.com>
Commit: Heikki Vesalainen <heikki.vesalainen@trademarknow.com>
Fix README.md indenting
---
README.md | 70 +++++++++++++++++++++++++++++++--------------------------------
1 file changed, 35 insertions(+), 35 deletions(-)
diff --git a/README.md b/README.md
index 37bd62e..1518ebb 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ the Scaladoc style guide.
```scala
/** This is a Scaladoc comment.
* 2nd line.
- */
+ */
```
Alternatively, if the configurable variable
@@ -42,8 +42,8 @@ wherein all following lines are indented under the first
asterisk.
```scala
/**
* This is a Javadoc-style comment.
- * 2nd line.
- */
+ * 2nd line.
+ */
```
All other multi-line comments are indented under the first asterisk.
@@ -51,12 +51,12 @@ All other multi-line comments are indented under the first
asterisk.
```
/**
* Supercalifragilistic-
- * expialidocious!
- */
+ * expialidocious!
+ */
/*
- A comment
- */
+A comment
+*/
```
Typing an asterisk in multi-line comment region, at the start of a
@@ -169,8 +169,8 @@ example, the `eager` mode will indent `map` in the
following code
```scala
val x = List(1, 2, 3)
- map(x => x + 1)
- ```
+ map(x => x + 1)
+```
The `operators` and `eager` modes will indent the second row in the
following code, as the first line ends with an operator character.
@@ -178,7 +178,7 @@ following code, as the first line ends with an operator
character.
```scala
val x = 20 +
21
- ```
+```
The `reluctant` mode (default) will not indent the line in either
case. However, all three modes will indent the second line in these
@@ -191,7 +191,7 @@ val x = List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9).
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 the `eager` mode to stop it from indenting
a line. For example
@@ -218,12 +218,12 @@ expressions will be indented in the traditional way.
```scala
val x = try {
some()
- } catch {
- case e => other
- } finally {
- clean-up()
- }
- ```
+} catch {
+ case e => other
+} finally {
+ clean-up()
+}
+```
However, when the variable is set to `t`, the body will be indented
one extra step to make the `val`, `var` or `def` stand out. For
@@ -232,12 +232,12 @@ example:
```scala
val x = try {
some()
- } catch {
- case e => other
- } finally {
- clean-up()
- }
- ```
+ } catch {
+ case e => other
+ } finally {
+ clean-up()
+ }
+```
### Parameter lists
@@ -253,7 +253,7 @@ val y = List( "Alpha", "Bravo",
val x = equals(List(1,2,3) map (x =>
x + 1))
- ```
+```
When the variable is set to `t`, the same will be indented as:
@@ -263,7 +263,7 @@ val y = List( "Alpha", "Bravo",
val x = equals(List(1,2,3) map (x =>
x + 1))
- ```
+```
### Expression forms: if, for, try
@@ -275,10 +275,10 @@ forms are not aligned specially.
```scala
val x = if (kala)
foo
- else if (koira)
- bar
- else
- zot
+else if (koira)
+ bar
+else
+ zot
val x = try "1".toInt
catch { case e => 0}
@@ -293,18 +293,18 @@ When the variable is set to `t`, the same will be
indented as:
```scala
val x = if (kala)
foo
- else if (koira)
- bar
- else
- zot
+ else if (koira)
+ bar
+ else
+ zot
val x = try "1".toInt
catch { case e => 0}
- finally { println("hello") }
+ finally { println("hello") }
val xs = for (i <- 1 to 10)
yield i
- ```
+```
## Prettify-Symbols
- [nongnu] elpa/scala-mode 84850e7 167/217: remove CI badge, (continued)
- [nongnu] elpa/scala-mode 84850e7 167/217: remove CI badge, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode ee375b9 172/217: idiomatic emacs lisp cleanups, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode c90bbde 176/217: Added a few prettify rules for cats/scalaz operators (#112), ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 9b8db62 181/217: upgrade CI (#127), ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode b67029a 184/217: fix #120, align according to forms, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 970d88e 187/217: make keywords match case sensitive (#133), ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 5209142 189/217: Support for identifiers consisting from operator characters (#138), ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 6f49104 193/217: scala-syntax:propertize-dollar, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 2a7b0fd 195/217: Moved ensime/emacs-scala-mode back to hvesalai/emacs-scala-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 5d28cb3 210/217: feat: support trailing commas (>= Scala 2.12.2), ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode b21befd 211/217: Fix README.md indenting,
ELPA Syncer <=
- [nongnu] elpa/scala-mode d837c96 203/217: doc: supports both Scala 2 and 3 (to some extent), not just 2.9, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 2bf5621 207/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 402d6df 209/217: Merge pull request #165 from fommil/sbtn, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode ac8106f 025/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode d81bc28 028/217: indenting code lines also removes trailing whitespace, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 26cd0b7 040/217: merged from align-parameters, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 884795f 052/217: more fixes to strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 7113976 059/217: Indenting for multi-line strings with margin, fixed row comment indent, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 8d4f34f 058/217: Use font-lock-doc-face for scaladoc comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 689bd7d 089/217: (require 'package), ELPA Syncer, 2021/08/29