I was searching for the string mtype as a word, or as the tail end of another word, as in expected_mtype.
ack '(_|\b)mtype\b' seems to find the correct results, but mtype is never highlighted, and the only thing that does get highlighted is any _ before mtype.
Here's some test data.
# Test for '(_|\b)mtype\n'
itemtype # Should not match
work_mtype # Should match
mtypelist # Should not match
my $mtype # Should match
I was searching for the string
mtype
as a word, or as the tail end of another word, as inexpected_mtype
.ack '(_|\b)mtype\b'
seems to find the correct results, butmtype
is never highlighted, and the only thing that does get highlighted is any_
beforemtype
.Here's some test data.