Skip to content

Commit

Permalink
Merge pull request #1349 from dtolnay/cliteral
Browse files Browse the repository at this point in the history
Preserve c"..." and cr"..." literal tokens
  • Loading branch information
dtolnay committed Jan 31, 2023
2 parents 8dbdb72 + de70bd4 commit fc39707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ mod value {
});
}
}
// c"...", cr"...", cr#"..."#
// TODO: add a Lit::CStr variant?
b'c' => return Lit::Verbatim(token),
_ => {}
}

Expand Down

0 comments on commit fc39707

Please sign in to comment.