File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ them in the resulting words:
382
382
383
383
say qw{"a b" c}.raku; # OUTPUT: «("\"a", "b\"", "c")»
384
384
385
- Thus, if you wish to preserve quoted sub-strings as single items in the resulting words
385
+ Thus, if you wish to preserve quoted substrings as single items in the resulting words
386
386
you need to use the C<qww> variant:
387
387
388
388
say qww{"a b" c}.raku; # OUTPUT: «("a b", "c")»
@@ -418,7 +418,7 @@ leaving them in the resulting words:
418
418
419
419
my $a = 42; say qqw{"$a b" c}.raku; # OUTPUT: «("\"42", "b\"", "c")»
420
420
421
- Thus, if you wish to preserve quoted sub-strings as single items in the
421
+ Thus, if you wish to preserve quoted substrings as single items in the
422
422
resulting words you need to use the C<qqww> variant:
423
423
424
424
my $a = 42; say qqww{"$a b" c}.raku; # OUTPUT: «("42 b", "c")»
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ my %variants = %(
41
41
smartmatch => rx :i / << smart [\s + | \-] match /,
42
42
subdirectories => rx :i / << sub \- directories /,
43
43
subdirectory => rx :i / << sub \- directory /,
44
+ substring => rx :i / << sub \- string /,
44
45
zero-width => rx :i / << zero \s + width<! before ' joiner' ><! before ' no-break space' > /,
45
46
);
46
47
You can’t perform that action at this time.
0 commit comments