diff options
author | Andrew Gallant <jamslam@gmail.com> | 2018-03-13 20:38:50 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-03-13 22:55:39 -0400 |
commit | cd08707c7c82058559bd5557efb3c1d0379dbf1d (patch) | |
tree | 37b7094ef1b753f1a2dc090b10badeef693e3c69 /CHANGELOG.md | |
parent | c2e97cd858fd5a18bcfe31979dbd5d859cb240aa (diff) |
grep: upgrade to regex-syntax 0.5
This update brings with it many bug fixes:
* Better error messages are printed overall. We also include
explicit call out for unsupported features like backreferences
and look-around.
* Regexes like `\s*{` no longer emit incomprehensible errors.
* Unicode escape sequences, such as `\u{..}` are now supported.
For the most part, this upgrade was done in a straight-forward way. We
resist the urge to refactor the `grep` crate, in anticipation of it
being rewritten anyway.
Note that we removed the `--fixed-strings` suggestion whenever a regex
syntax error occurs. In practice, I've found that it results in a lot of
false positives, and I believe that its use is not as paramount now that
regex parse errors are much more readable.
Closes #268, Closes #395, Closes #702, Closes #853
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5012596c..c3be4888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,16 @@ CPUs (such as AVX2) for additional optimizations. per line. Previously, the behavior of ripgrep was to report the total number of matching lines. (Note that this behavior diverges from the behavior of GNU grep.) +* Octal syntax is no longer supported. ripgrep previously accepted expressions + like `\1` as syntax for matching `U+0001`, but ripgrep will now report an + error instead. Feature enhancements: * [FEATURE #411](https://github.com/BurntSushi/ripgrep/issues/411): Add a `--stats` flag, which emits aggregate statistics after search results. +* [FEATURE #702](https://github.com/BurntSushi/ripgrep/issues/702): + Support `\u{..}` Unicode escape sequences. * [FEATURE #812](https://github.com/BurntSushi/ripgrep/issues/812): Add `-b/--byte-offset` flag that reports byte offset of each matching line. * [FEATURE #814](https://github.com/BurntSushi/ripgrep/issues/814): @@ -29,12 +34,19 @@ Bug fixes: * [BUG #135](https://github.com/BurntSushi/ripgrep/issues/135): Release portable binaries that conditionally use SSSE3, AVX2, etc., at runtime. +* [BUG #268](https://github.com/BurntSushi/ripgrep/issues/268): + Print descriptive error message when trying to use look-around or + backreferences. +* [BUG #395](https://github.com/BurntSushi/ripgrep/issues/395): + Show comprehensible error messages for regexes like `\s*{`. * [BUG #526](https://github.com/BurntSushi/ripgrep/issues/526): Support backslash escapes in globs. * [BUG #832](https://github.com/BurntSushi/ripgrep/issues/832): Clarify usage instructions for `-f/--file` flag. * [BUG #852](https://github.com/BurntSushi/ripgrep/issues/852): Be robust with respect to `ENOMEM` errors returned by `mmap`. +* [BUG #853](https://github.com/BurntSushi/ripgrep/issues/853): + Upgrade `grep` crate to `regex-syntax 0.5.0`. 0.8.1 (2018-02-20) |