mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 00:50:33 +00:00
Fix lexing single-quoted f-string with multi-line format spec (#7787)
## Summary Reported at https://github.com/python/cpython/issues/110259 ## Test Plan Add test cases for the fix and update the snapshots
This commit is contained in:
parent
27def479bd
commit
709abd534a
4 changed files with 339 additions and 4 deletions
|
@ -1290,6 +1290,11 @@ match foo:
|
|||
|
||||
f"\{foo}\{bar:\}"
|
||||
f"\\{{foo\\}}"
|
||||
f"""{
|
||||
foo:x
|
||||
y
|
||||
z
|
||||
}"""
|
||||
"#
|
||||
.trim(),
|
||||
"<test>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue