Skip to content

Commit 9f5fbce

Browse files
committed
Add "w" in --ack mode, and some doc fixes
1 parent ba4f8db commit 9f5fbce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/App-Rak.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ arguments will be honoured.
107107
=head3 §string
108108

109109
If the pattern starts with C<§>, then it indicates that the string should
110-
occur as a word (with word-boundaris on both ends) in the item. Basically a
110+
occur as a word (with word-boundaries on both ends) in the item. Basically a
111111
shortcut to specifying C<--type=words string>. Any C<--smartcase>,
112112
C<--smartmark>, C<--ignorecase> or C<--ignoremark> arguments will be honoured.
113113

lib/App/Rak.rakumod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ my constant %falsies =
9999
unrestricted => 'dir',
100100
;
101101

102-
# The JSON config to map "ack" arguments to "rak" arguments as closely as possible
102+
# The JSON config to map "ack" arguments to "rak" arguments as closely as
103+
# possible
103104
my constant %ack-interface-config =
104105
"1" => (:only-first,),
105106
"A" => (:after-context<!>,),
@@ -141,6 +142,7 @@ my constant %ack-interface-config =
141142
"type" => (:extensions<!>,),
142143
"TYPE" => (:extensions<!>,),
143144
"v" => (:invert-match,),
145+
"w" => (:type<words>,),
144146
"with-filename" => (:show-filename,),
145147
"x" => (:files-from<->,),
146148
;

0 commit comments

Comments
 (0)