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/04/03 16:28:35 UTC
groovy git commit: Refine error handling for missing right parenthesis
Repository: groovy
Updated Branches:
refs/heads/master 263393d77 -> b9929d2eb
Refine error handling for missing right parenthesis
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/b9929d2e
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/b9929d2e
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/b9929d2e
Branch: refs/heads/master
Commit: b9929d2ebfa1874f3911acb020e367cfb5ea776e
Parents: 263393d
Author: sunlan <su...@apache.org>
Authored: Wed Apr 4 00:28:18 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Wed Apr 4 00:28: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/b9929d2e/src/antlr/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/src/antlr/GroovyParser.g4 b/src/antlr/GroovyParser.g4
index 930c1d6..385fd11 100644
--- a/src/antlr/GroovyParser.g4
+++ b/src/antlr/GroovyParser.g4
@@ -286,7 +286,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)?
@@ -402,7 +402,7 @@ qualifiedClassNameList
;
formalParameters
- : LPAREN formalParameterList? RPAREN
+ : LPAREN formalParameterList? rparen
;
formalParameterList
@@ -595,7 +595,7 @@ variableDeclaration[int t]
;
typeNamePairs
- : LPAREN typeNamePair (COMMA typeNamePair)* RPAREN
+ : LPAREN typeNamePair (COMMA typeNamePair)* rparen
;
typeNamePair