Commit db7a6221 authored by Robert Griesemer's avatar Robert Griesemer

raw strings may span multiple lines

R=r
DELTA=7  (2 added, 0 deleted, 5 changed)
OCL=30492
CL=30494
parent ab7a8d43
...@@ -354,9 +354,10 @@ literals. ...@@ -354,9 +354,10 @@ literals.
<p> <p>
Raw string literals are character sequences between back quotes Raw string literals are character sequences between back quotes
<code>``</code>. Within the quotes, any character is legal except <code>``</code>. Within the quotes, any character is legal except
newline and back quote. The value of a raw string literal is the back quote. The value of a raw string literal is the
string composed of the uninterpreted bytes between the quotes; string composed of the uninterpreted characters between the quotes;
in particular, backslashes have no special meaning. in particular, backslashes have no special meaning and the string may
span multiple lines.
</p> </p>
<p> <p>
Interpreted string literals are character sequences between double Interpreted string literals are character sequences between double
...@@ -386,8 +387,9 @@ interpreted_string_lit = """ { unicode_value | byte_value } """ . ...@@ -386,8 +387,9 @@ interpreted_string_lit = """ { unicode_value | byte_value } """ .
</pre> </pre>
<pre> <pre>
`abc` `abc` // same as "abc"
`\n` `\n
\n` // same as "\\n\n\\n"
"\n" "\n"
"" ""
"Hello, world!\n" "Hello, world!\n"
......
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