1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
Andrew Gallant ba503eb677 grep-regex: fix inner literal detection
It seems the inner literal detector fails spectacularly in cases of
concatenations that involve groups. The issue here is that if the prefix
of a group inside a concatenation can match the empty string, then any
literals generated to that point in the concatenation need to be cut
such that they are never extended. The detector isn't really built to
handle this case, so we just act conservative cut literals whenever we
see a sub-group. This may make some regexes slower, but the inner
literal detector already misses plenty of cases.

Literal detection (including in the regex engine) is a key component
that needs to be completely rethought at some point.

Fixes #1064
2018-09-25 16:56:04 -04:00
..
data ripgrep: add support for lz4 decompression 2018-07-21 16:26:39 -04:00
feature.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs tests: touch up tests on Windows 2018-08-21 23:05:52 -04:00
macros.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
misc.rs ripgrep: add --pre-glob flag 2018-09-04 23:18:55 -04:00
multiline.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
regression.rs grep-regex: fix inner literal detection 2018-09-25 16:56:04 -04:00
tests.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
util.rs tests: touch up tests on Windows 2018-08-21 23:05:52 -04:00