unicode: Rename is_XID_start to is_xid_start, is_XID_continue to is_xid_continue

This commit is contained in:
Brian Anderson
2014-11-03 15:18:45 -08:00
parent 76ddd2b154
commit f39c29d0bc
5 changed files with 33 additions and 8 deletions

View File

@@ -383,7 +383,7 @@ impl<'a> Parser<'a> {
/// characters.
fn word(&mut self) -> &'a str {
let start = match self.cur.clone().next() {
Some((pos, c)) if c.is_XID_start() => {
Some((pos, c)) if c.is_xid_start() => {
self.cur.next();
pos
}
@@ -392,7 +392,7 @@ impl<'a> Parser<'a> {
let mut end;
loop {
match self.cur.clone().next() {
Some((_, c)) if c.is_XID_continue() => {
Some((_, c)) if c.is_xid_continue() => {
self.cur.next();
}
Some((pos, _)) => { end = pos; break }