groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch GROOVY_2_5_X updated: GROOVY-9184: reinstate dangling comma case
Date Wed, 03 Jul 2019 02:00:29 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new 58ad2e3  GROOVY-9184: reinstate dangling comma case
58ad2e3 is described below

commit 58ad2e31dbfb78d9da1e72eefc45f6f92893dee5
Author: Paul King <paulk@asert.com.au>
AuthorDate: Wed Jul 3 12:00:18 2019 +1000

    GROOVY-9184: reinstate dangling comma case
---
 src/main/antlr2/org/codehaus/groovy/antlr/groovy.g | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/antlr2/org/codehaus/groovy/antlr/groovy.g b/src/main/antlr2/org/codehaus/groovy/antlr/groovy.g
index 4458bc7..49f3bad 100644
--- a/src/main/antlr2/org/codehaus/groovy/antlr/groovy.g
+++ b/src/main/antlr2/org/codehaus/groovy/antlr/groovy.g
@@ -1197,7 +1197,7 @@ enumConstants
             nls! COMMA! (
                 (nls annotationsOpt IDENT) => nls! enumConstant
             |
-                (nls (RCURLY | classField)) => {break;}
+                (nls (SEMI! | RCURLY | classField)) => {break;}
             )
         )*
     ;


Mime
View raw message