~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Doc/reference/lexical_analysis.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
A physical line is a sequence of characters terminated by an end-of-line
76
76
sequence.  In source files, any of the standard platform line termination
77
77
sequences can be used - the Unix form using ASCII LF (linefeed), the Windows
78
 
form using the ASCII sequence CR LF (return followed by linefeed), or the
 
78
form using the ASCII sequence CR LF (return followed by linefeed), or the old
79
79
Macintosh form using the ASCII CR (return) character.  All of these forms can be
80
80
used equally, regardless of platform.
81
81
 
424
424
   stringliteral: [`stringprefix`](`shortstring` | `longstring`)
425
425
   stringprefix: "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" | "uR"
426
426
   shortstring: "'" `shortstringitem`* "'" | '"' `shortstringitem`* '"'
427
 
   longstring: ""'" `longstringitem`* ""'"
 
427
   longstring: "'''" `longstringitem`* "'''"
428
428
             : | '"""' `longstringitem`* '"""'
429
429
   shortstringitem: `shortstringchar` | `escapeseq`
430
430
   longstringitem: `longstringchar` | `escapeseq`