Skip to content

Commit 16b4f59

Browse files
Revision plus removal of :skip-tests
1 parent 30597d7 commit 16b4f59

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

doc/Language/syntax.pod6

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ characters with the Unicode General Category value I<Letter> (L), and the
249249
underscore C<_>. Alphanumeric characters additionally include characters with
250250
the Unicode General Category value I<Number, Decimal Digit> (Nd).
251251
252-
=begin code :skip-test
252+
=begin code
253253
# valid ordinary identifiers:
254254
x
255255
_snake_oil
@@ -260,12 +260,12 @@ piece_of_π
260260
駱駝道 # "Rakuda-dō", Japanese for "Way of the camel"
261261
=end code
262262
263-
=begin code :skip-test
263+
=begin code
264264
# invalid ordinary identifiers:
265-
42 # Identifier does not start with alphabetic character
266-
with-numbers1234-5 # Embedded hyphen not followed by alphabetic character
267-
is-prime? # Question mark is not alphanumeric
268-
x² # Superscript 2 is not alphanumeric (in the sense explained above)
265+
42 # identifier does not start with alphabetic character
266+
with-numbers1234-5 # embedded hyphen not followed by alphabetic character
267+
is-prime? # question mark is not alphanumeric
268+
x² # superscript 2 is not alphanumeric (in the sense explained above)
269269
=end code
270270
271271
=head3 Extended identifiers
@@ -276,8 +276,8 @@ a common "short" name, but still needs for each of its elements to be identifiab
276276
individually. For example, you might use a module whose short name is C<Dog>, while
277277
its long name includes its naming authority and version:
278278
279-
=begin code :skip-test
280-
Dog:auth<Somebody>:ver<1.0> # Long module names including author and version
279+
=begin code
280+
Dog:auth<Somebody>:ver<1.0> # long module names including author and version
281281
Dog:auth<Somebody>:ver<2.0>
282282
283283
------------------------------------
@@ -292,7 +292,7 @@ Similarly, sets of operators work together in various syntactic categories with
292292
like C<prefix>, C<infix>, C<postfix>, etc. The long, official names of these operators
293293
often contain characters that are excluded from ordinary identifiers:
294294
295-
=begin code :skip-test
295+
=begin code
296296
infix:<+> # the official name of the operator in $a + $b
297297
infix:<*> # the official name of the operator in $a * $b
298298
infix:«<=» # the official name of the operator in $a <= $b
@@ -308,7 +308,7 @@ followed by an ordinary identifier C<key> and/or a quoting bracketing construct
308308
such as C«< >», C<« »> or C<[' ']> which quotes one or more arbitrary characters
309309
C<value>:
310310
311-
=begin code :skip-test
311+
=begin code
312312
# exemplary valid extended identifiers:
313313
postfix:<²> # the official long name of the operator in $x²
314314
WOW:That'sAwesome
@@ -329,7 +329,7 @@ so C<infix:<+>> and C<infix:<->> are two different operators. The bracketing
329329
characters used, however, do not count as part of the name; only the quoted data
330330
matters. So these are all the same name:
331331
332-
=begin code :skip-test
332+
=begin code
333333
infix:<+>
334334
infix:<<+>>
335335
infix:«+»
@@ -339,7 +339,7 @@ matters. So these are all the same name:
339339
340340
Similarly, all of this works:
341341
342-
=begin code :skip-test
342+
=begin code
343343
my $foo:bar<baz> = 'quux';
344344
say $foo:bar«baz»; # OUTPUT: «quux␤»
345345
my $take-me:<home> = 'When the glory has no end';
@@ -351,7 +351,7 @@ Similarly, all of this works:
351351
Where an extended identifier comprises two or more colon pairs, their order
352352
is generally significant:
353353
354-
=begin code :skip-test
354+
=begin code
355355
my $a:b<c>:d<e> = 100;
356356
my $a:d<e>:b<c> = 200;
357357
say $a:b<c>:d<e>; # OUTPUT: «100␤», NOT: «200␤»
@@ -360,16 +360,16 @@ is generally significant:
360360
An exception to this rule is I<module versioning>; so these identifiers
361361
effectively name the same module:
362362
363-
=begin code :skip-test
363+
=begin code
364364
use ThatModule:auth<Somebody>:ver<2.7.18.28.18>
365365
use ThatModule:ver<2.7.18.28.18>:auth<Somebody>
366366
=end code
367367
368-
Furthermore, the adverbial form in extended identifiers supports
369-
compile-time interpolation, which mandates the use of
368+
Furthermore, colon pairs in extended identifiers support
369+
compile-time interpolation; this requires the use of
370370
L<constants|/language/terms#Constants> for the interpolation values:
371371
372-
=begin code :skip-test
372+
=begin code
373373
constant $c = 42; # Constant binds to Int; $-sigil enables interpolation
374374
my $a:foo<42> = "answer";
375375
say $a:foo«$c»; # OUTPUT: «answer␤»
@@ -381,7 +381,7 @@ angle brackets C«< >» (which mimic single quote interpolation
381381
characteristics) cannot be used for the interpolation of constant
382382
names.
383383
384-
=begin code :skip-test
384+
=begin code
385385
constant $what = 'are';
386386
my @we:<are>= <the champions>;
387387
say @we:«$what»; # OUTPUT: «[the champions]␤»

0 commit comments

Comments
 (0)