You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2018/04/10 04:34:00 UTC

groovy git commit: Refine `sep` rule of parser

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 <su...@apache.org>
Authored: Tue Apr 10 12:33:55 2018 +0800
Committer: sunlan <su...@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*)*
     ;