diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-11-03 15:18:45 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-11-21 13:18:08 -0800 |
| commit | f39c29d0bc0e58d76e2289dc52038770797a8f38 (patch) | |
| tree | acebe53ed356d92664a3e76969d7405b5cab9be2 /src/libsyntax/parse | |
| parent | 76ddd2b1547dd461d0487233a0a19674292c976e (diff) | |
| download | rust-f39c29d0bc0e58d76e2289dc52038770797a8f38.tar.gz rust-f39c29d0bc0e58d76e2289dc52038770797a8f38.zip | |
unicode: Rename is_XID_start to is_xid_start, is_XID_continue to is_xid_continue
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index 9b3e25c5851..a88029e087b 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -692,7 +692,7 @@ impl<'a> StringReader<'a> { // integer literal followed by field/method access or a range pattern // (`0..2` and `12.foo()`) if self.curr_is('.') && !self.nextch_is('.') && !self.nextch().unwrap_or('\0') - .is_XID_start() { + .is_xid_start() { // might have stuff after the ., and if it does, it needs to start // with a number self.bump(); @@ -1385,7 +1385,7 @@ fn ident_start(c: Option<char>) -> bool { (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' - || (c > '\x7f' && c.is_XID_start()) + || (c > '\x7f' && c.is_xid_start()) } fn ident_continue(c: Option<char>) -> bool { @@ -1395,7 +1395,7 @@ fn ident_continue(c: Option<char>) -> bool { || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_' - || (c > '\x7f' && c.is_XID_continue()) + || (c > '\x7f' && c.is_xid_continue()) } #[cfg(test)] |
