This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 5f65859 GROOVY-9442: GEP: Support for the new JDK14 string escape
sequence (\s for single space) (update doco)
5f65859 is described below
commit 5f6585921e5b2988390b93333841be585097d9b7
Author: Paul King <[email protected]>
AuthorDate: Fri Mar 20 20:54:35 2020 +1000
GROOVY-9442: GEP: Support for the new JDK14 string escape sequence (\s for
single space) (update doco)
---
src/spec/doc/core-syntax.adoc | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/spec/doc/core-syntax.adoc b/src/spec/doc/core-syntax.adoc
index 2742574..c1a67c8 100644
--- a/src/spec/doc/core-syntax.adoc
+++ b/src/spec/doc/core-syntax.adoc
@@ -321,20 +321,23 @@ Some special characters also use the backslash as escape
character:
|Escape sequence
|Character
-|\t
-|tabulation
-
|\b
|backspace
+|\f
+|formfeed
+
|\n
|newline
|\r
|carriage return
-|\f
-|formfeed
+|\s
+|single space
+
+|\t
+|tabulation
|\\
|backslash