fn lex_octal_escape(buf: &mut LexBuf) -> ParserError {
        let pos = buf.pos() - 2;
        buf.take_while(|ch| matches!(ch, '0'..='7'));
        ParserError::new(pos, "octal escapes are not supported")
    }
// We do not support octal (\o) or hexadecimal (\x) escapes, since it is
// possible to construct invalid UTF-8 with these escapes. We could check
// for and reject invalid UTF-8, of course, but it is too annoying to be
// worth doing right now. We still lex the escapes to produce nice error
// messages.
We do not support octal (\o) or hexadecimal (\x) escapes, since it is
possible to construct invalid UTF-8 with these escapes. We could check
for and reject invalid UTF-8, of course, but it is too annoying to be
worth doing right now. We still lex the escapes to produce nice error
messages.
We do not support octal ( \ o ) or hexadecimal ( \ x ) escapes since it is possible to construct invalid UTF - 8 with these escapes . We could check for and reject invalid UTF - 8 of course but it is too annoying to be worth doing right now . We still lex the escapes to produce nice error messages .
fn lex_octal_escape(buf: &mut LexBuf) -> ParserError {
        let pos = buf.pos() - 2;
        buf.take_while(|ch| matches!(ch, '0'..='7'));
        ParserError::new(pos, "octal escapes are not supported")
    }
fn lex_octal_escape ( buf : & mut LexBuf ) -> ParserError { let pos = buf . pos ( ) - 2 ; buf . take_while ( | ch | matches ! ( ch '0' '7' ) ) ; ParserError :: new ( pos , " " ) }
We do not support octal (\o) or hexadecimal (\x) escapes, since it is
possible to construct invalid UTF-8 with these escapes.
We do not support octal ( \ o ) or hexadecimal ( \ x ) escapes since it is possible to construct invalid UTF - 8 with these escapes .
buf
&mut LexBuf
buf
&mut LexBuf