beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

ack '(_|\b)mtype\b' fails on color coding #324

Closed petdance closed 7 years ago

petdance commented 11 years ago

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
hoelzro commented 11 years ago

I think this is a duplicate of #304.

gedge commented 10 years ago

yes, this is a duplicate of #304 - please close

petdance commented 10 years ago

Leaving both open until it is fixed.

petdance commented 7 years ago

This is an intentional feature. It is removed in ack3.