PEP 701: Clarify that newlines also end format specifier mode (#3460)

This commit is contained in:
Pablo Galindo Salgado 2023-10-10 15:14:41 +02:00 committed by GitHub
parent dd08f74688
commit 32db9d6112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -373,8 +373,8 @@ tokens:
2. Keep consuming tokens until a one of the following is encountered:
* A closing quote equal to the opening quote.
* If in "format specifier mode" (see step 3), an opening brace (``{``) or a
closing brace (``}``).
* If in "format specifier mode" (see step 3), an opening brace (``{``), a
closing brace (``}``), or a newline token (``\n``).
* If not in "format specifier mode" (see step 3), an opening brace (``{``) or
a closing brace (``}``) that is not immediately followed by another opening/closing
brace.