Closed petek closed 7 years ago
Highlighting is not behaving as I would expect when I use grouping in certain cases.
To start, create a text file (bar.txt) with 3 lines:
bar.txt
foo _foo afoo
In the first case below, the highlighting is incorrect. In all other cases, it is correct.
$ ack '(^|[^_])foo' bar.txt foo afoo $ ack '(^|[^_])(foo)' bar.txt foo afoo $ ack '(?:^|[^_])foo' bar.txt foo afoo $ ack '((^|[^_])foo)' bar.txt foo afoo
This is an intentional feature. It is removed in ack3.
Highlighting is not behaving as I would expect when I use grouping in certain cases.
To start, create a text file (
bar.txt
) with 3 lines:In the first case below, the highlighting is incorrect. In all other cases, it is correct.