Skip to content

Commit c9c198a

Browse files
committed
Use a coherent wording for look-{ahead|around}.
Remove the dash in occurences so that it is spelled as either lookaround or lookbehind. This seems a little more coherent with the terminology used also in Perl 5 (perldoc perlre).
1 parent 8659e42 commit c9c198a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/Language/5to6-nutshell.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ For character classes, this means that:
11061106
11071107
=item C<[abc[:upper:]]> becomes C«<[abc]+:Upper>»
11081108
1109-
For look-around assertions:
1109+
For lookaround assertions:
11101110
11111111
=item C<(?=[abc])> becomes C«<?[abc]>»
11121112

doc/Language/regexes.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ This can be useful for augmenting an existing regex. For example if you have
571571
a regex C<quoted> that matches a quoted string, then C</ <quoted> && <-[x]>* />
572572
matches a quoted string that does not contain the character C<x>.
573573
574-
Note that you cannot easily obtain the same behavior with a look-ahead, that
575-
is, a regex doesn't consume characters, because a look-ahead doesn't stop
574+
Note that you cannot easily obtain the same behavior with a lookahead, that
575+
is, a regex doesn't consume characters, because a lookahead doesn't stop
576576
looking when the quoted string stops matching.
577577
578578
=begin code
@@ -772,7 +772,7 @@ match with
772772
say "foobar" ~~ rx{ foo <!before bar> } # OUTPUT: «Nil␤»
773773
774774
775-
Look-around assertions can be used also with other patterns, like
775+
lookahead assertions can be used also with other patterns, like
776776
characters ranges, interpolated variables, subscripts and so on. In such
777777
cases it does suffice to use a C<?> (or a C<!> for the negate form) immeditely
778778
followed by the character classes, interpolated variable and more in general

0 commit comments

Comments
 (0)