Skip to content

Commit

Permalink
Merge pull request #1536 from cgay/rectangle-rule
Browse files Browse the repository at this point in the history
Update Language Extensions docs for DEP 12
  • Loading branch information
cgay authored Oct 1, 2023
2 parents f4bf7f1 + 859a602 commit 6d3237e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ processing ("raw" strings) and multi-line strings. Briefly,
#. Multi-line strings begin with three double-quote characters: ``"""``

#. End-of-line sequences in multi-line strings are always parsed as a single
Newline (``\\n``) character, regardless of source file line endings or the
Newline (``\n``) character, regardless of source file line endings or the
conventions of the operating system.

#. Any string, whether delimited by ``"`` or ``"""`` may be prefixed with
``#r`` or ``#R`` to disable escape sequence processing.

#. Any leading whitespace that *matches the whitespace preceding the end
``"""`` delimiter* is removed, allowing multi-line strings to be formatted
nicely in source code.

See `DEP 12 <https://opendylan.org/proposals/dep-0012-string-literals.html>`_
for details.

0 comments on commit 6d3237e

Please sign in to comment.