Fix for bug#755744

This commit is contained in:
Oleg Sukhodolsky 2003-06-20 08:51:47 +00:00
parent 54f09ae36c
commit f4a85d495c
2 changed files with 5 additions and 1 deletions

View File

@ -114,6 +114,9 @@
<li class="body">Fixed grammar problems with unclosed string
literals and multiple-lines comments (bug 694111)</li>
<li class="body">Fixed grammar definition for identifiers to
handle all Unicode symbols (bug 755744)</li>
</ul>

View File

@ -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')*
;