Skip to content

Commit e9fdd1f

Browse files
committed
Add :lang<pod6>'s to make examples compile
1 parent 95e3a46 commit e9fdd1f

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

doc/Language/about.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ You can add emphasis with bold (B<V< B<> >>) or italicized (B<V< I<> >>),
136136
with or without code formatting (B<V< C<> >>). Due to current parser limitations,
137137
special steps have to be taken to use B<V< X<> >> with other formatting codes; for example:
138138
139-
=begin code
139+
=begin code :lang<pod6>
140140
=item X<B<foo>|foo> a fancy subroutine
141141
=end code
142142

doc/Language/pod.pod6

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Every Pod document has to begin with C<=begin pod> and end with C<=end pod>.
1212
Everything between these two delimiters will be processed and used to generate
1313
documentation.
1414
15-
=begin code
15+
=begin code :lang<pod6>
1616
=begin pod
1717
1818
A very simple Perl 6 Pod document
@@ -35,7 +35,7 @@ C<typename> of the block. Typenames that are entirely lowercase (for
3535
example: C<=begin head1>) or entirely uppercase (for example: C<=begin
3636
SYNOPSIS>) are reserved.
3737
38-
=begin code
38+
=begin code :lang<pod6>
3939
=begin head1
4040
Top Level Heading
4141
=end head1
@@ -92,7 +92,7 @@ The C<=for> marker is followed by the C<typename> of the block
9292
plus, optionally, any configuration data as in the delimited
9393
blocks described above.
9494
95-
=begin code
95+
=begin code :lang<pod6>
9696
=for head1
9797
Top Level Heading
9898
=end code
@@ -104,7 +104,7 @@ C<typename> of the block. All following data are part of the contents of the
104104
block, thus configuration data B<cannot> be specified for an I<abbreviated>
105105
block. The block ends at the next Pod directive or the first blank line.
106106
107-
=begin code
107+
=begin code :lang<pod6>
108108
=head1 Top level heading
109109
=end code
110110
@@ -178,7 +178,7 @@ Pod offers a wide range of standard block types.
178178
Headings can be defined using C<=headN>,
179179
where N is greater than zero (e.g., C<=head1>, C<=head2>, …).
180180
181-
=begin code
181+
=begin code :lang<pod6>
182182
=head1 A top level heading
183183
184184
=head2 A second level heading
@@ -222,7 +222,7 @@ Ordinary paragraphs do not require an explicit marker or delimiters.
222222
223223
Alternatively, there is also an explicit C<=para> marker that can be used to explicitly mark a paragraph.
224224
225-
=begin code
225+
=begin code :lang<pod6>
226226
=para
227227
This is an ordinary paragraph.
228228
Its text will be squeezed and
@@ -233,7 +233,7 @@ In addition, the longer C<=begin para> and C<=end para> form can be used.
233233
234234
For example:
235235
236-
=begin code
236+
=begin code :lang<pod6>
237237
238238
=begin para
239239
This is an ordinary paragraph.
@@ -269,7 +269,7 @@ This ordinary paragraph introduces a code block:
269269
270270
Code blocks can also be explicitly defined by enclosing them in C<=begin code> and C<=end code>
271271
272-
=begin code
272+
=begin code :lang<pod6>
273273
=begin code
274274
my $name = 'John Doe';
275275
say $name;
@@ -313,7 +313,7 @@ The three suspects are:
313313
314314
Lists that define terms or commands use C<=defn>, equivalent to the C<DL> lists in HTML
315315
316-
=begin code
316+
=begin code :lang<pod6>
317317
=defn Happy
318318
When you're not blue.
319319
@@ -337,7 +337,7 @@ Note that C<=item> is just an abbreviation for C<=item1>.
337337
338338
For example:
339339
340-
=begin code
340+
=begin code :lang<pod6>
341341
=item1 Animal
342342
=item2 Vertebrate
343343
=item2 Invertebrate
@@ -415,13 +415,13 @@ Pod comments are comments that Pod renderers ignore.
415415
416416
Comments are useful for meta-documentation (documenting the documentation). Single-line comments use the C<comment> keyword:
417417
418-
=begin code
418+
=begin code :lang<pod6>
419419
=comment Add more here about the algorithm
420420
=end code
421421
422422
For multi-line comments use a delimited C<comment> block:
423423
424-
=begin code
424+
=begin code :lang<pod6>
425425
=begin comment
426426
This comment is
427427
multi-line.
@@ -433,7 +433,7 @@ multi-line.
433433
All uppercase block typenames are reserved for specifying standard documentation,
434434
publishing, source components, or meta-information.
435435
436-
=begin code
436+
=begin code :lang<pod6>
437437
=NAME
438438
=AUTHOR
439439
=VERSION
@@ -536,7 +536,7 @@ code itself.
536536
C<P<>> codes are handy for breaking out standard elements of
537537
your documentation set into reusable components that can then be
538538
incorporated directly into multiple documents. For example:
539-
=begin code
539+
=begin code :lang<pod6>
540540
=COPYRIGHT
541541
P<file:/shared/docs/std_copyright.pod>
542542

0 commit comments

Comments
 (0)