Sync interpolated lexer state within re_lex_logical_token

This commit is contained in:
Micha Reiser
2025-12-10 17:16:28 +01:00
parent 7d47f711c1
commit c4e32ea180
3 changed files with 35 additions and 27 deletions

View File

@@ -841,7 +841,7 @@ impl TokenFlags {
self.intersects(TokenFlags::T_STRING.union(TokenFlags::F_STRING))
}
/// Returns `true` if the token is a triple-quoted t-string.
/// Returns `true` if the token is a triple-quoted interpolated-string.
pub fn is_triple_quoted_interpolated_string(self) -> bool {
self.intersects(TokenFlags::TRIPLE_QUOTED_STRING) && self.is_interpolated_string()
}