We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1234b commit 7334752Copy full SHA for 7334752
src/parse.rs
@@ -462,7 +462,8 @@ fn byte(input: Cursor) -> Result<Cursor, LexError> {
462
if !input.chars().as_str().is_char_boundary(offset) {
463
return Err(LexError);
464
}
465
- input.advance(offset).expect("'")
+ let input = input.advance(offset).expect("'")?;
466
+ Ok(literal_suffix(input))
467
468
469
fn character(input: Cursor) -> Result<Cursor, LexError> {
@@ -483,7 +484,8 @@ fn character(input: Cursor) -> Result<Cursor, LexError> {
483
484
485
486
let (idx, _) = chars.next().ok_or(LexError)?;
- input.advance(idx).expect("'")
487
+ let input = input.advance(idx).expect("'")?;
488
489
490
491
macro_rules! next_ch {
0 commit comments