Skip to content

Commit f80757f

Browse files
committed
Indicate that « » is equivalent to qq:ww:v
And link to the adverbs anchor on page. Also move the indices for the quoting adverbs above the table's introductory statement, so that the anchors are created above it and it is visible (and provides context) upon linking. https://irclog.perlgeek.de/perl6/2017-12-31#i_15637987
1 parent ccafec8 commit f80757f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/Language/quoting.pod6

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ These examples produce:
5454
This is still a closing curly brace → \
5555
=end code
5656
57+
X<|:x (quoting adverb)>X<|:exec (quoting adverb)>X<|:w (quoting adverb)>X<|:words (quoting adverb)>X<|:ww (quoting adverb)>X<|:quotewords (quoting adverb)>X<|:q (quoting adverb)>X<|:single (quoting adverb)>X<|:qq (quoting adverb)>X<|:double (quoting adverb)>X<|:s (quoting adverb)>X<|:scalar (quoting adverb)>X<|:a (quoting adverb)>X<|:array (quoting adverb)>X<|:h (quoting adverb)>X<|:hash (quoting adverb)>X<|:f (quoting adverb)>X<|:function (quoting adverb)>X<|:c (quoting adverb)>X<|:closure (quoting adverb)>X<|:b (quoting adverb)>X<|:backslash (quoting adverb)>X<|:to (quoting adverb)>X<|:heredoc (quoting adverb)>X<|:v (quoting adverb)>X<|:val (quoting adverb)>
58+
5759
The behaviour of quoting constructs can be modified with adverbs, as explained
5860
in detail in later sections.
5961
60-
X<|:x (quoting adverb)>X<|:exec (quoting adverb)>X<|:w (quoting adverb)>X<|:words (quoting adverb)>X<|:ww (quoting adverb)>X<|:quotewords (quoting adverb)>X<|:q (quoting adverb)>X<|:single (quoting adverb)>X<|:qq (quoting adverb)>X<|:double (quoting adverb)>X<|:s (quoting adverb)>X<|:scalar (quoting adverb)>X<|:a (quoting adverb)>X<|:array (quoting adverb)>X<|:h (quoting adverb)>X<|:hash (quoting adverb)>X<|:f (quoting adverb)>X<|:function (quoting adverb)>X<|:c (quoting adverb)>X<|:closure (quoting adverb)>X<|:b (quoting adverb)>X<|:backslash (quoting adverb)>X<|:to (quoting adverb)>X<|:heredoc (quoting adverb)>X<|:v (quoting adverb)>X<|:val (quoting adverb)>
6162
=begin table
6263
Short Long Meaning
6364
@@ -332,9 +333,10 @@ so quotes coming from inside interpolated variables are just literal quote chara
332333
333334
=head2 X<<<Word quoting with interpolation and quote protection: « »|quote,<< >>;quote,« »>>>
334335
335-
This style of quoting is like C<qqww>, but with an extra feature that lets you construct
336-
L<allomorphs|/language/glossary#index-entry-Allomorph>. The ASCII equivalent to C<« »> are
337-
double angle brackets C«<< >>».
336+
This style of quoting is like C<qqww>, but with the added benefit of constructing
337+
L<allomorphs|/language/glossary#index-entry-Allomorph> (making it functionally equivalent to
338+
L<qq:ww:v|#index-entry-:val_(quoting_adverb)>). The ASCII equivalent to C<« »> are double
339+
angle brackets C«<< >>».
338340
339341
# Allomorph Construction
340342
my $a = 42; say « $a b c ».perl; # OUTPUT: «(IntStr.new(42, "42"), "b", "c")␤»

0 commit comments

Comments
 (0)