Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 3e273a898 -> 31cc93bf2


Minor refactoring

(cherry picked from commit c3315af)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 31cc93bf2fa1c762a0557b6de74f3e6d8b214d0b
Parents: 3e273a8
Author: sunlan <[email protected]>
Authored: Thu Oct 5 19:48:28 2017 +0800
Committer: sunlan <[email protected]>
Committed: Thu Oct 5 19:49:15 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/31cc93bf/src/antlr/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/src/antlr/GroovyParser.g4 b/src/antlr/GroovyParser.g4
index 39f3315..756efb6 100644
--- a/src/antlr/GroovyParser.g4
+++ b/src/antlr/GroovyParser.g4
@@ -468,12 +468,16 @@ qualifiedNameElement
     |   TRAIT
     ;
 
+qualifiedNameElements
+    :   (qualifiedNameElement DOT)*
+    ;
+
 qualifiedClassName
-    :   (qualifiedNameElement DOT)* identifier
+    :   qualifiedNameElements identifier
     ;
 
 qualifiedStandardClassName
-    :   (qualifiedNameElement DOT)* (className DOT)* className
+    :   qualifiedNameElements className (DOT className)*
     ;
 
 literal

Reply via email to