Skip to content

Commit

Permalink
Implement DEP 12, string literals supporting Rectangle Rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Oct 1, 2023
1 parent f4bf7f1 commit 859a602
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 859a602

Please sign in to comment.