You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2016/01/19 19:25:24 UTC

groovy git commit: GROOVY-7625: document why slashy strings allow brackets but double quoted strings do not (closes #243)

Repository: groovy
Updated Branches:
  refs/heads/master bdaef2a15 -> 099a45436


GROOVY-7625: document why slashy strings allow brackets but double quoted strings do not (closes #243)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/099a4543
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/099a4543
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/099a4543

Branch: refs/heads/master
Commit: 099a454364531d3475c27db5587c90484595f8b9
Parents: bdaef2a
Author: Aseem Bansal <an...@users.noreply.github.com>
Authored: Tue Jan 19 23:09:56 2016 +0530
Committer: pascalschumacher <pa...@gmx.net>
Committed: Tue Jan 19 19:24:58 2016 +0100

----------------------------------------------------------------------
 src/spec/doc/core-syntax.adoc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/099a4543/src/spec/doc/core-syntax.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-syntax.adoc b/src/spec/doc/core-syntax.adoc
index 0e04832..d88499c 100644
--- a/src/spec/doc/core-syntax.adoc
+++ b/src/spec/doc/core-syntax.adoc
@@ -531,6 +531,8 @@ That's why the following assert would actually not compile as it would look like
 include::{projectdir}/src/spec/test/SyntaxTest.groovy[tags=slashy_5,indent=0]
 ----
 
+NOTE: As slashy strings were mostly designed to make regexp easier so a few things that are errors in GStrings like `$()` will work with slashy strings.
+
 === Dollar slashy string
 
 Dollar slashy strings are multiline GStrings delimited with an opening `$/` and and a closing `/$`.