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:
@@ -1290,6 +1290,11 @@ match foo:
|
||||
|
||||
f"\{foo}\{bar:\}"
|
||||
f"\\{{foo\\}}"
|
||||
f"""{
|
||||
foo:x
|
||||
y
|
||||
z
|
||||
}"""
|
||||
"#
|
||||
.trim(),
|
||||
"<test>",
|
||||
|
||||
Reference in New Issue
Block a user