mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 07:34:06 -05:00
@@ -46,7 +46,8 @@ pub(crate) struct MultilineRangesBuilder {
|
||||
|
||||
impl MultilineRangesBuilder {
|
||||
pub(crate) fn visit_token(&mut self, token: &Tok, range: TextRange) {
|
||||
if let Tok::String { triple_quoted, .. } = token {
|
||||
if let Tok::String { triple_quoted, .. } | Tok::FStringMiddle { triple_quoted, .. } = token
|
||||
{
|
||||
if *triple_quoted {
|
||||
self.ranges.push(range);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user