Skip to content

Fix continuation detection following multi-line strings#9332

Merged
charliermarsh merged 1 commit intomainfrom
charlie/fuzz
Dec 31, 2023
Merged

Fix continuation detection following multi-line strings#9332
charliermarsh merged 1 commit intomainfrom
charlie/fuzz

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

The logic that detects continuations assumed that tokens themselves cannot span multiple lines. However, strings can -- even single-quoted strings.

Closes #9323.

@charliermarsh charliermarsh added bug Something isn't working fuzzer Surfaced via fuzzing. labels Dec 31, 2023
@charliermarsh charliermarsh marked this pull request as ready for review December 31, 2023 15:35
@charliermarsh charliermarsh merged commit b3789cd into main Dec 31, 2023
@charliermarsh charliermarsh deleted the charlie/fuzz branch December 31, 2023 15:43
@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fuzzer Surfaced via fuzzing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rule W293 cause panic

1 participant