groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject groovy git commit: GROOVY-7625: document why slashy strings allow brackets but double quoted strings do not (closes #243)
Date Tue, 19 Jan 2016 18:27:37 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 32706bf7e -> d82aeaea8


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/d82aeaea
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/d82aeaea
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/d82aeaea

Branch: refs/heads/GROOVY_2_4_X
Commit: d82aeaea8fea9265d6476e5a737239faeda4b103
Parents: 32706bf
Author: Aseem Bansal <anshbansal@users.noreply.github.com>
Authored: Tue Jan 19 23:09:56 2016 +0530
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Tue Jan 19 19:27:26 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/d82aeaea/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
`/$`.


Mime
View raw message