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/02/20 14:40:41 UTC

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

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 <re...@hotmail.com>
Authored: Tue Feb 20 22:40:26 2018 +0800
Committer: danielsun1106 <re...@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)+
     ;