Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X f7b3ff278 -> d6f68c48f


Refine `sep` rule of parser

(cherry picked from commit 9e35807)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: d6f68c48fde4fa3d23853e9a6ff91fe81f078726
Parents: f7b3ff2
Author: sunlan <sun...@apache.org>
Authored: Tue Apr 10 12:33:55 2018 +0800
Committer: sunlan <sun...@apache.org>
Committed: Tue Apr 10 12:34:40 2018 +0800

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


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

Reply via email to