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 23:49:44 UTC

groovy git commit: Revert "Refine `sep` rule of parser"

Repository: groovy
Updated Branches:
  refs/heads/master ebd835d56 -> 297189289


Revert "Refine `sep` rule of parser"

This reverts commit 9e35807


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

Branch: refs/heads/master
Commit: 2971892891602c196822389362798ef35e8d6eed
Parents: ebd835d
Author: sunlan <su...@apache.org>
Authored: Wed Apr 11 07:49:07 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Wed Apr 11 07:49:40 2018 +0800

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


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