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 5975a61 commit 6b1234bCopy full SHA for 6b1234b
src/parse.rs
@@ -379,7 +379,8 @@ fn cooked_byte_string(mut input: Cursor) -> Result<Cursor, LexError> {
379
'outer: while let Some((offset, b)) = bytes.next() {
380
match b {
381
b'"' => {
382
- return Ok(input.advance(offset + 1));
+ let input = input.advance(offset + 1);
383
+ return Ok(literal_suffix(input));
384
}
385
b'\r' => {
386
if let Some((_, b'\n')) = bytes.next() {
@@ -433,7 +434,7 @@ fn raw_string(input: Cursor) -> Result<Cursor, LexError> {
433
434
match ch {
435
'"' if input.advance(byte_offset + 1).starts_with(&input.rest[..n]) => {
436
let rest = input.advance(byte_offset + 1 + n);
- return Ok(rest);
437
+ return Ok(literal_suffix(rest));
438
439
'\r' => {}
440
_ => {}
0 commit comments