paulk-asert commented on a change in pull request #1362:
URL: https://github.com/apache/groovy/pull/1362#discussion_r485372609
##########
File path: src/antlr/GroovyLexer.g4
##########
@@ -882,7 +882,7 @@ ELVIS_ASSIGN : '?=';
// ยง3.8 Identifiers (must appear after all keywords in the grammar)
CapitalizedIdentifier
- : [A-Z] JavaLetterOrDigit*
+ : JavaLetter {Character.isUpperCase(getInputStream().LA(-1))}?
JavaLetterOrDigit*
Review comment:
LGTM. I'll merge and include this change.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]