lex.c (java_read_unicode): Reset bs_count when finished with `\u' sequence.
* lex.c (java_read_unicode): Reset bs_count when finished with `\u' sequence. From-SVN: r36703
This commit is contained in:
parent
11908bbe42
commit
5beededc7e
@ -1,3 +1,8 @@
|
|||||||
|
2000-09-27 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
|
* lex.c (java_read_unicode): Reset bs_count when finished with
|
||||||
|
`\u' sequence.
|
||||||
|
|
||||||
2000-10-01 Mark Mitchell <mark@codesourcery.com>
|
2000-10-01 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
Convert to GC.
|
Convert to GC.
|
||||||
|
@ -432,6 +432,7 @@ java_read_unicode (lex, term_context, unicode_escape_p)
|
|||||||
else
|
else
|
||||||
java_lex_error ("Non hex digit in Unicode escape sequence", 0);
|
java_lex_error ("Non hex digit in Unicode escape sequence", 0);
|
||||||
}
|
}
|
||||||
|
lex->bs_count = 0;
|
||||||
*unicode_escape_p = 1;
|
*unicode_escape_p = 1;
|
||||||
return (term_context
|
return (term_context
|
||||||
? unicode : (java_lineterminator (c) ? '\n' : unicode));
|
? unicode : (java_lineterminator (c) ? '\n' : unicode));
|
||||||
|
Loading…
Reference in New Issue
Block a user