mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 16:10:17 +00:00
Track quoting style in the tokenizer (#10256)
This commit is contained in:
parent
72c9f7e4c9
commit
c504d7ab11
55 changed files with 4595 additions and 3800 deletions
|
@ -87,7 +87,7 @@ pub(crate) struct FStringRangesBuilder {
|
|||
impl FStringRangesBuilder {
|
||||
pub(crate) fn visit_token(&mut self, token: &Tok, range: TextRange) {
|
||||
match token {
|
||||
Tok::FStringStart => {
|
||||
Tok::FStringStart(_) => {
|
||||
self.start_locations.push(range.start());
|
||||
}
|
||||
Tok::FStringEnd => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue