Skip to content

Commit 70a123a

Browse files
committed
Improving presence of escape characters in the documentation
Suggestion for a new section has not been considered, since escape characters are standard and they behave in the standard way. However, some indexing and a list of all escape characters has been added. This closes #2313.
1 parent 79ab0d7 commit 70a123a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

doc/Language/quoting.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Short Long Meaning
9090
:v :val Convert to allomorph if possible
9191
=end table
9292
93+
X<|escaping quote>
9394
=head2 X<Escaping: q|quote,q;quote,' '>
9495
9596
=begin code :skip-test

doc/Language/regexes.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ You can include Unicode properties in the list as well:
354354
/<:Zs + [\x9] - [\xA0]>/
355355
# Any character with "Zs" property, or a tab, but not a newline
356356
357+
X<|escaping characters>
357358
You can use C<\> to escape characters that would have some meaning in the
358359
regular expression:
359360

doc/Language/syntax.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ say "world";
155155
156156
=head2 Comments
157157
158-
Comments are parts of the program text which are only intended for human readers;
159-
the Perl 6 compilers do not evaluate them as program text.
158+
Comments are parts of the program text which are only intended for human
159+
readers; the Perl 6 compilers do not evaluate them as program text.
160160
161161
Comments count as whitespace in places where the absence or presence of
162162
whitespace disambiguates possible parses.
@@ -454,7 +454,8 @@ String literals are surrounded by quotes:
454454
say 'a string literal';
455455
say "a string literal\nthat interprets escape sequences";
456456
457-
See L<quoting|/language/quoting> for many more options.
457+
See L<quoting|/language/quoting> for many more options. Perl 6 uses the standard
458+
escape characters in literals: C<\' \" \\ \n \r \t \b \f \v \0>.
458459
459460
=head3 X<Number literals|0b (radix form);0d (radix form);0o (radix form);0x (radix form)>
460461

0 commit comments

Comments
 (0)