mirror of https://github.com/python/cpython
Fix longstringitem definition. #3505.
This commit is contained in:
parent
8b762f05c7
commit
03894c5070
|
@ -424,7 +424,7 @@ String literals are described by the following lexical definitions:
|
||||||
stringliteral: [`stringprefix`](`shortstring` | `longstring`)
|
stringliteral: [`stringprefix`](`shortstring` | `longstring`)
|
||||||
stringprefix: "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" | "uR"
|
stringprefix: "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" | "uR"
|
||||||
shortstring: "'" `shortstringitem`* "'" | '"' `shortstringitem`* '"'
|
shortstring: "'" `shortstringitem`* "'" | '"' `shortstringitem`* '"'
|
||||||
longstring: ""'" `longstringitem`* ""'"
|
longstring: "'''" `longstringitem`* "'''"
|
||||||
: | '"""' `longstringitem`* '"""'
|
: | '"""' `longstringitem`* '"""'
|
||||||
shortstringitem: `shortstringchar` | `escapeseq`
|
shortstringitem: `shortstringchar` | `escapeseq`
|
||||||
longstringitem: `longstringchar` | `escapeseq`
|
longstringitem: `longstringchar` | `escapeseq`
|
||||||
|
|
Loading…
Reference in New Issue