Fix for bug#755744
This commit is contained in:
parent
54f09ae36c
commit
f4a85d495c
|
|
@ -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>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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')*
|
||||
;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue