mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:49:50 +00:00
parent
83195a6030
commit
df7fb95cbc
29 changed files with 180 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue