FS#62979 - [ripgrep] no support for look-ahead/look-behind: build with --pcre2
Attached to Project:
Arch Linux
Opened by Daniel Hahler (blueyed) - Saturday, 22 June 2019, 20:30 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 23 June 2019, 03:59 GMT
Opened by Daniel Hahler (blueyed) - Saturday, 22 June 2019, 20:30 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 23 June 2019, 03:59 GMT
|
Details
ripgrep has no support for look-ahead/look-behind:
% rg '(?!LUA)_LIBDIR' regex parse error: (?!LUA)_LIBDIR ^^^ error: look-around, including look-ahead and look-behind, is not supported Consider enabling PCRE2 with the --pcre2 flag, which can handle backreferences and look-around. It would be nice if this would be enabled via `--pcre2`. |
This task depends upon
[1] https://github.com/BurntSushi/ripgrep/blob/973de50c9ef451da2cfcdfa86f2b2711d8d6ff48/src/app.rs#L16
Thanks!