diff --git a/docs/releasenotes.html b/docs/releasenotes.html index cd9ff0363..72c4cf25e 100644 --- a/docs/releasenotes.html +++ b/docs/releasenotes.html @@ -114,6 +114,9 @@
  • Fixed grammar problems with unclosed string literals and multiple-lines comments (bug 694111)
  • + +
  • Fixed grammar definition for identifiers to + handle all Unicode symbols (bug 755744)
  • diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g index 56a3094b1..07f070c7c 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g @@ -1148,7 +1148,8 @@ VOCAB // if it's a literal or really an identifer IDENT options {testLiterals=true;} - : ('a'..'z'|'A'..'Z'|'_'|'$') ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'$')* + : ('a'..'z'|'A'..'Z'|'_'|'$'| {Character.isJavaIdentifierStart(LA(1))}? '\u0080'..'\uFFFE') + ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'$'| {Character.isJavaIdentifierPart(LA(1))}? '\u0080'..'\uFFFE')* ;