parse_format: treat r" as a literal
This commit is contained in:
parent
399b6452b5
commit
04a19b93c6
3 changed files with 14 additions and 3 deletions
|
@ -730,7 +730,7 @@ fn find_skips_from_snippet(
|
|||
str_style: Option<usize>,
|
||||
) -> (Vec<usize>, bool) {
|
||||
let snippet = match snippet {
|
||||
Some(ref s) if s.starts_with('"') || s.starts_with("r#") => s,
|
||||
Some(ref s) if s.starts_with('"') || s.starts_with("r\"") || s.starts_with("r#") => s,
|
||||
_ => return (vec![], false),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue