groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Refine error handling for missing right parenthesis
Date Tue, 03 Apr 2018 16:29:35 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 63e8f2c7f -> 44dd3693b


Refine error handling for missing right parenthesis

(cherry picked from commit b9929d2)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 44dd3693bb390099c18ad29f96f4e885bfe3ef73
Parents: 63e8f2c
Author: sunlan <sunlan@apache.org>
Authored: Wed Apr 4 00:28:18 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Wed Apr 4 00:29:31 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/44dd3693/src/antlr/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/src/antlr/GroovyParser.g4 b/src/antlr/GroovyParser.g4
index f964c17..b46ac69 100644
--- a/src/antlr/GroovyParser.g4
+++ b/src/antlr/GroovyParser.g4
@@ -319,7 +319,7 @@ memberDeclaration[int t]
  */
 methodDeclaration[int t, int ct]
     :   { 3 == $ct }?
-        returnType[$ct] methodName LPAREN RPAREN (DEFAULT nls elementValue)?
+        returnType[$ct] methodName LPAREN rparen (DEFAULT nls elementValue)?
     |
         modifiersOpt typeParameters? returnType[$ct]?
         methodName formalParameters (nls THROWS nls qualifiedClassNameList)?
@@ -435,7 +435,7 @@ qualifiedClassNameList
     ;
 
 formalParameters
-    :   LPAREN formalParameterList? RPAREN
+    :   LPAREN formalParameterList? rparen
     ;
 
 formalParameterList
@@ -628,7 +628,7 @@ variableDeclaration[int t]
     ;
 
 typeNamePairs
-    :   LPAREN typeNamePair (COMMA typeNamePair)* RPAREN
+    :   LPAREN typeNamePair (COMMA typeNamePair)* rparen
     ;
 
 typeNamePair


Mime
View raw message