Commit 03894c50 authored by Georg Brandl's avatar Georg Brandl

Fix longstringitem definition. #3505.

parent 8b762f05
......@@ -424,7 +424,7 @@ String literals are described by the following lexical definitions:
stringliteral: [`stringprefix`](`shortstring` | `longstring`)
stringprefix: "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" | "uR"
shortstring: "'" `shortstringitem`* "'" | '"' `shortstringitem`* '"'
longstring: ""'" `longstringitem`* ""'"
longstring: "'''" `longstringitem`* "'''"
: | '"""' `longstringitem`* '"""'
shortstringitem: `shortstringchar` | `escapeseq`
longstringitem: `longstringchar` | `escapeseq`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment