mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-07 09:00:31 +00:00
Update rust toolchain to 1.90 (#20469)
This commit is contained in:
parent
2502ff7638
commit
1758f26d94
5 changed files with 4 additions and 5 deletions
|
@ -1613,7 +1613,7 @@ pub(super) fn needs_chaperone_space(
|
|||
if is_no_chaperone_for_escaped_quote_in_triple_quoted_docstring_enabled(context) {
|
||||
if flags.is_triple_quoted() {
|
||||
if let Some(before_quote) = trim_end.strip_suffix(flags.quote_style().as_char()) {
|
||||
if count_consecutive_chars_from_end(before_quote, '\\') % 2 == 0 {
|
||||
if count_consecutive_chars_from_end(before_quote, '\\').is_multiple_of(2) {
|
||||
// Even backslash count preceding quote;
|
||||
// ```py
|
||||
// """a " """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue