Skip to content

Commit

Permalink
Spelling fixes. Thanks, Yaroslav Halchenko.
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Jul 25, 2024
1 parent 9fd9834 commit fd2ec6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ack
Original file line number Diff line number Diff line change
Expand Up @@ -2395,6 +2395,7 @@ mailing list.
How appropriate to have I<ack>nowledgements!
Thanks to everyone who has contributed to ack in any way, including
Yaroslav Halchenko,
Thiago Perrotta,
Thomas Gossler,
Kieran Mace,
Expand Down
8 changes: 4 additions & 4 deletions dev/Cookbook.pm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ If your desired pattern begins with one word and ends with another, C<-w> is sti
If your desired pattern starts or ends (or both) with punctuation, using C<-w> may be erroneous. ack will warn you in this case.
If you get a warning about C<-w>, Say What You Mean (SWYM).
If you mean the start of your pattern with punctuation should be
at the beginning of line B<OR> preceeded by a word OR by a space (or tab etc), before the needed punctuation,
at the beginning of line B<OR> preceded by a word OR by a space (or tab etc), before the needed punctuation,
SWYM as C<(?:^|\b|\s)#+\s+(.*)>
which will find and capture a comment.
(Try it plain, with C<-o>, and with C<--output='$1'>, which has its own section below)
Expand Down Expand Up @@ -256,11 +256,11 @@ Note, this requires L<Pod::Markdown|https://metacpan.org/pod/Pod::Markdown> plug
=head1 EXAMPLES OF C<< --output >>
The C<-o> and C<< --output expr >> options allow for specifying and formating the output.
The C<-o> and C<< --output expr >> options allow for specifying and formatting the output.
With look-behind and look-ahead, one "match without matching" for highlighting or C<-o>) purposes.
The regex C<< abc\K(def)(?=ghi) >> will highlight ONLY C<def> in the text, \
but only if that string is preceeded by C<abc> and C<ghi> follows.
but only if that string is preceded by C<abc> and C<ghi> follows.
With C<-o>, it will output C<def> but only when found in context of C<abc>B<<C<def>>>C<ghi>.
HT to L<HN|https://news.ycombinator.com/item?id=15433310>
Expand Down Expand Up @@ -578,7 +578,7 @@ If the files aren't in nor wanted in sorted order, the shell command or alias ne
with modern C<bash>'s C<< <() >> command substitution as file-pipes.
(That C<< <(fileter $f1) <(filter $f2) >> idiom is also good for pre-filtering input to C<diff> etc.)
(That C<< <(filter $f1) <(filter $f2) >> idiom is also good for pre-filtering input to C<diff> etc.)
Note for Windows users: Microsoft and Cygwin both provide Linux/GNU commandline utilities for Windows.
They may have come with the Perl you're using for Ack.
Expand Down

0 comments on commit fd2ec6c

Please sign in to comment.