Skip to content

Commit 7496243

Browse files
authored
Merge pull request #2959 from tbrowder/gram
tidy grammar
2 parents ec374a6 + a7e659e commit 7496243

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/Language/regexes.pod6

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ delimiter would clash with the use of adverbs; accordingly, such use of the
3131
colon is forbidden. Similarly, parentheses cannot be used as alternative regex
3232
delimiters, at least not without a space between C<m> or C<rx> and the
3333
opening delimiter. This is because identifiers that are immediately followed by
34-
parentheses are always parsed as a subroutine call. I.e. in C<rx()> the L<call
34+
parentheses are always parsed as a subroutine call. For example, in C<rx()> the L<call
3535
operator|/language/operators#postcircumfix_(_)> C<()> invokes the subroutine
3636
C<rx>. The form C<rx ( abc )>, however, I<does> define a Regex object.
3737
@@ -43,12 +43,12 @@ operators:
4343
$match = m/.+/; say $match; say $match.^name; # OUTPUT: «「abc」␤Match␤»
4444
$match = /.+/; say $match; say $match.^name; # OUTPUT: «/.+/␤Regex␤»
4545
46-
Whitespace in literal regexes is ignored insofar as the
47-
L<C<:sigspace> adverb|/language/regexes#Sigspace> is not used to make whitespace
46+
Whitespace in literal regexes is ignored unless the
47+
L<C<:sigspace> adverb|/language/regexes#Sigspace> is used to make whitespace
4848
syntactically significant.
4949
5050
In addition to whitespace, comments may be used inside of regexes to improve
51-
their readability and comprehensibility just as in Perl6 code in general. This
51+
their readability and comprehensibility just as in Perl 6 code in general. This
5252
is true for both L<single line comments|/language/syntax#Single-line_comments>
5353
and L<multi line/embedded comments|
5454
/language/syntax#Multi-line_/_embedded_comments>:
@@ -78,7 +78,7 @@ In its simplest form a regex comprises only literals:
7878
/Καλησπέρα/; # "Good evening" in Greek
7979
8080
If you want a regex to literally match one or more characters that normally act
81-
as metacharacters, these characters must either be escaped using a backslash, or
81+
as metacharacters, those characters must either be escaped using a backslash, or
8282
be quoted using single or double quotes.
8383
8484
The backslash serves as a switch. It switches a single metacharacter into a
@@ -98,7 +98,7 @@ comma this will work:
9898
9999
while this will fail:
100100
=for code :skip-test<deliberate error>
101-
/ , /; # !! error: a yet meaningless/unrecognized metacharacter
101+
/ , /; # !! error: an as-yet meaningless/unrecognized metacharacter
102102
# does not automatically match literally
103103
104104
While an escaping backslash exerts its effect on the next individual character,

0 commit comments

Comments
 (0)