groovy git commit: GString literals can exist within source files at restricted places (originally related to parser restrictions because they start with the same character as comments). They can't start directly after a comment but leaving a blank line

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: GString literals can exist within source files at restricted places (originally related to parser restrictions because they start with the same character as comments). They can't start directly after a comment but leaving a blank line

paulk
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X e3ac341b9 -> 7fca4b25c


GString literals can exist within source files at restricted places (originally related to parser restrictions because they start with the same character as comments). They can't start directly after a comment but leaving a blank line is sufficient.


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 7fca4b25cf7f2d12d059f8ffd00944522e2b7029
Parents: e3ac341
Author: paulk <[hidden email]>
Authored: Wed May 10 12:33:26 2017 +1000
Committer: paulk <[hidden email]>
Committed: Wed May 10 12:34:24 2017 +1000

----------------------------------------------------------------------
 subprojects/parser-antlr4/src/test/resources/core/GString_02.groovy | 1 +
 subprojects/parser-antlr4/src/test/resources/core/GString_06.groovy | 1 +
 subprojects/parser-antlr4/src/test/resources/core/Literal_03.groovy | 1 +
 3 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/7fca4b25/subprojects/parser-antlr4/src/test/resources/core/GString_02.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/core/GString_02.groovy b/subprojects/parser-antlr4/src/test/resources/core/GString_02.groovy
index 2e69232..a995cb1 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/GString_02.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/GString_02.groovy
@@ -16,6 +16,7 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+
 /abc${'123'}def $a.b.c,d${->12}/
 $/${-12}abc${'123'}def $a.b.c,d${->12}/$
 

http://git-wip-us.apache.org/repos/asf/groovy/blob/7fca4b25/subprojects/parser-antlr4/src/test/resources/core/GString_06.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/core/GString_06.groovy b/subprojects/parser-antlr4/src/test/resources/core/GString_06.groovy
index 18d5770..fa222dc 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/GString_06.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/GString_06.groovy
@@ -16,4 +16,5 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+
 /At $date/
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/groovy/blob/7fca4b25/subprojects/parser-antlr4/src/test/resources/core/Literal_03.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/core/Literal_03.groovy b/subprojects/parser-antlr4/src/test/resources/core/Literal_03.groovy
index 865596b..5c81362 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/Literal_03.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/Literal_03.groovy
@@ -16,6 +16,7 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+
 /\123 \/ abc \u1234 \r\n\$/
 
 $/\123 \/ abc \u1234 \r\n/$