We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62294eb commit 284ab76Copy full SHA for 284ab76
Doc/reference/lexical_analysis.rst
@@ -628,10 +628,10 @@ to indicate that an ending quote ends the literal.
628
STRING: [`stringprefix`] (`stringcontent`)
629
stringprefix: <("r" | "u" | "b" | "br" | "rb"), case-insensitive>
630
stringcontent:
631
- | "'" ( !"'" `stringitem`)* "'"
632
- | '"' ( !'"' `stringitem`)* '"'
633
| "'''" ( !"'''" `longstringitem`)* "'''"
634
| '"""' ( !'"""' `longstringitem`)* '"""'
+ | "'" ( !"'" `stringitem`)* "'"
+ | '"' ( !'"' `stringitem`)* '"'
635
stringitem: `stringchar` | `stringescapeseq`
636
stringchar: <any `source_character`, except backslash and newline>
637
longstringitem: `stringitem` | newline
0 commit comments