Alternate quotes for strings inside f-strings in preview (#13860)
This commit is contained in:
@@ -524,6 +524,10 @@ impl StringLikePart<'_> {
|
||||
self.end() - kind.closer_len(),
|
||||
)
|
||||
}
|
||||
|
||||
pub const fn is_fstring(self) -> bool {
|
||||
matches!(self, Self::FString(_))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<&'a ast::StringLiteral> for StringLikePart<'a> {
|
||||
|
||||
Reference in New Issue
Block a user