@@ -541,27 +541,27 @@ where
541541
542542 fn is_char ( & self ) -> bool {
543543 match self . chr0 {
544- Some ( 'a' ... 'z' ) | Some ( 'A' ... 'Z' ) | Some ( '_' ) | Some ( '0' ... '9' ) => true ,
544+ Some ( 'a' ..= 'z' ) | Some ( 'A' ..= 'Z' ) | Some ( '_' ) | Some ( '0' ..= '9' ) => true ,
545545 _ => false ,
546546 }
547547 }
548548
549549 fn is_number ( & self , radix : u32 ) -> bool {
550550 match radix {
551551 2 => match self . chr0 {
552- Some ( '0' ... '1' ) => true ,
552+ Some ( '0' ..= '1' ) => true ,
553553 _ => false ,
554554 } ,
555555 8 => match self . chr0 {
556- Some ( '0' ... '7' ) => true ,
556+ Some ( '0' ..= '7' ) => true ,
557557 _ => false ,
558558 } ,
559559 10 => match self . chr0 {
560- Some ( '0' ... '9' ) => true ,
560+ Some ( '0' ..= '9' ) => true ,
561561 _ => false ,
562562 } ,
563563 16 => match self . chr0 {
564- Some ( '0' ... '9' ) | Some ( 'a' ... 'f' ) | Some ( 'A' ... 'F' ) => true ,
564+ Some ( '0' ..= '9' ) | Some ( 'a' ..= 'f' ) | Some ( 'A' ..= 'F' ) => true ,
565565 _ => false ,
566566 } ,
567567 x => unimplemented ! ( "Radix not implemented: {}" , x) ,
@@ -686,8 +686,8 @@ where
686686 }
687687
688688 match self . chr0 {
689- Some ( '0' ... '9' ) => return Some ( self . lex_number ( ) ) ,
690- Some ( '_' ) | Some ( 'a' ... 'z' ) | Some ( 'A' ... 'Z' ) => return Some ( self . lex_identifier ( ) ) ,
689+ Some ( '0' ..= '9' ) => return Some ( self . lex_number ( ) ) ,
690+ Some ( '_' ) | Some ( 'a' ..= 'z' ) | Some ( 'A' ..= 'Z' ) => return Some ( self . lex_identifier ( ) ) ,
691691 Some ( '#' ) => {
692692 self . lex_comment ( ) ;
693693 continue ;
0 commit comments