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 of parser
Date Tue, 10 Apr 2018 04:34:00 GMT
Repository: groovy
Updated Branches:
  refs/heads/master c1bf7b56a -> 9e3580768


Refine `sep` rule of parser


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

Branch: refs/heads/master
Commit: 9e3580768473287b7e6f82508b476ae6d0d1c675
Parents: c1bf7b5
Author: sunlan <sunlan@apache.org>
Authored: Tue Apr 10 12:33:55 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Tue Apr 10 12:33:55 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/9e358076/src/antlr/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/src/antlr/GroovyParser.g4 b/src/antlr/GroovyParser.g4
index 385fd11..fa9b675 100644
--- a/src/antlr/GroovyParser.g4
+++ b/src/antlr/GroovyParser.g4
@@ -1215,5 +1215,6 @@ nls
     :   NL*
     ;
 
-sep :   (NL | SEMI)+
+sep :   SEMI NL*
+    |   NL+ (SEMI NL*)*
     ;


Mime
View raw message