Skip to content

Commit

Permalink
PEP 701: Clarify that newlines also end format specifier mode (#3460)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored Oct 10, 2023
1 parent dd08f74 commit 32db9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peps/pep-0701.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 32db9d6

Please sign in to comment.