Start string location at kind or quote prefix

This commit is contained in:
Charlie Marsh 2022-10-15 11:03:45 -04:00
parent eede189959
commit 15e2ac3fd7
8 changed files with 57 additions and 18 deletions

View file

@ -205,7 +205,9 @@ where
// Check if we have a string:
if self.chr0 == Some('"') || self.chr0 == Some('\'') {
return self.lex_string(saw_b, saw_r, saw_u, saw_f);
return self
.lex_string(saw_b, saw_r, saw_u, saw_f)
.map(|(_, tok, end_pos)| (start_pos, tok, end_pos));
}
}