groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Refine `sep` rule according to @sharwell's suggestion(danielsun1106/groovy-parser#27)
Date Tue, 20 Feb 2018 14:40:41 GMT
Repository: groovy
Updated Branches:
  refs/heads/master afcbbba13 -> 58cd58242


Refine `sep` rule according to @sharwell's suggestion(danielsun1106/groovy-parser#27)


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

Branch: refs/heads/master
Commit: 58cd582422e5796750f2a7ebe1e7c6bfb49dc27f
Parents: afcbbba
Author: danielsun1106 <realbluesun@hotmail.com>
Authored: Tue Feb 20 22:40:26 2018 +0800
Committer: danielsun1106 <realbluesun@hotmail.com>
Committed: Tue Feb 20 22:40:38 2018 +0800

----------------------------------------------------------------------
 src/antlr/GroovyParser.g4 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/58cd5824/src/antlr/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/src/antlr/GroovyParser.g4 b/src/antlr/GroovyParser.g4
index 19e6860..21bf2c2 100644
--- a/src/antlr/GroovyParser.g4
+++ b/src/antlr/GroovyParser.g4
@@ -1210,6 +1210,5 @@ nls
     :   NL*
     ;
 
-sep :   SEMI NL*
-    |   NL+ (SEMI NL*)*
+sep :   (NL | SEMI)+
     ;


Mime
View raw message