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 2017/09/06 12:10:16 UTC
groovy git commit: Refine "block" rule
Repository: groovy
Updated Branches:
refs/heads/master 546ccd875 -> 3853aca6e
Refine "block" rule
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/3853aca6
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/3853aca6
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/3853aca6
Branch: refs/heads/master
Commit: 3853aca6ea57d7b2ae85e3fd4146e7ebb51f0cbe
Parents: 546ccd8
Author: sunlan <su...@apache.org>
Authored: Wed Sep 6 20:10:02 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Wed Sep 6 20:10:02 2017 +0800
----------------------------------------------------------------------
src/main/antlr/GroovyParser.g4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/3853aca6/src/main/antlr/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/src/main/antlr/GroovyParser.g4 b/src/main/antlr/GroovyParser.g4
index 4fe61e3..d72b907 100644
--- a/src/main/antlr/GroovyParser.g4
+++ b/src/main/antlr/GroovyParser.g4
@@ -562,7 +562,7 @@ elementValueArrayInitializer
// STATEMENTS / BLOCKS
block
- : LBRACE (nls | sep+) blockStatementsOpt RBRACE
+ : LBRACE (nls | sep*) blockStatementsOpt RBRACE
;
blockStatement