https://github.com/python/cpython/commit/0a0cbd43a7404b2a5b86ca032764e4524bdecd83
commit: 0a0cbd43a7404b2a5b86ca032764e4524bdecd83
branch: main
author: Stan Ulbrych <[email protected]>
committer: encukou <[email protected]>
date: 2025-09-02T13:48:26+02:00
summary:
gh-110936: Reorder string literal definition in Lexical Analysis (GH-138063)
files:
M Doc/reference/lexical_analysis.rst
diff --git a/Doc/reference/lexical_analysis.rst
b/Doc/reference/lexical_analysis.rst
index e320eedfa67a27..6338c181813bbe 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -628,10 +628,10 @@ to indicate that an ending quote ends the literal.
STRING: [`stringprefix`] (`stringcontent`)
stringprefix: <("r" | "u" | "b" | "br" | "rb"), case-insensitive>
stringcontent:
- | "'" ( !"'" `stringitem`)* "'"
- | '"' ( !'"' `stringitem`)* '"'
| "'''" ( !"'''" `longstringitem`)* "'''"
| '"""' ( !'"""' `longstringitem`)* '"""'
+ | "'" ( !"'" `stringitem`)* "'"
+ | '"' ( !'"' `stringitem`)* '"'
stringitem: `stringchar` | `stringescapeseq`
stringchar: <any `source_character`, except backslash and newline>
longstringitem: `stringitem` | newline
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]