Skip to content

Commit 284ab76

Browse files
[3.14] pythongh-110936: Reorder string literal definition in Lexical Analysis (pythonGH-138063) (python#138373)
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 62294eb commit 284ab76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,10 @@ to indicate that an ending quote ends the literal.
628628
STRING: [`stringprefix`] (`stringcontent`)
629629
stringprefix: <("r" | "u" | "b" | "br" | "rb"), case-insensitive>
630630
stringcontent:
631-
| "'" ( !"'" `stringitem`)* "'"
632-
| '"' ( !'"' `stringitem`)* '"'
633631
| "'''" ( !"'''" `longstringitem`)* "'''"
634632
| '"""' ( !'"""' `longstringitem`)* '"""'
633+
| "'" ( !"'" `stringitem`)* "'"
634+
| '"' ( !'"' `stringitem`)* '"'
635635
stringitem: `stringchar` | `stringescapeseq`
636636
stringchar: <any `source_character`, except backslash and newline>
637637
longstringitem: `stringitem` | newline

0 commit comments

Comments
 (0)