summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-04-14 17:39:37 -0400
committerAndrew Gallant <jamslam@gmail.com>2019-04-14 19:29:27 -0400
commit967e7ad0de3e657e8f81c1384a48ca1eea4edde7 (patch)
treecabe8250acf34508fc60724104fa05bbcd257295 /complete
parent9952ba2068bd0f9baf74a2094d0d1db493b71180 (diff)
ripgrep: add --auto-hybrid-regex flag
This flag, when set, will automatically dispatch to PCRE2 if the given regex cannot be compiled by Rust's regex engine. If both engines fail to compile the regex, then both errors are surfaced. Closes #1155
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg4
1 files changed, 4 insertions, 0 deletions
diff --git a/complete/_rg b/complete/_rg
index f26a688d..ac3a52a1 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -112,6 +112,10 @@ _rg() {
'--hidden[search hidden files and directories]'
$no"--no-hidden[don't search hidden files and directories]"
+ + '(hybrid)' # hybrid regex options
+ '--auto-hybrid-regex[dynamically use PCRE2 if necessary]'
+ $no"--no-auto-hybrid-regex[don't dynamically use PCRE2 if necessary]"
+
+ '(ignore)' # Ignore-file options
"(--no-ignore-global --no-ignore-parent --no-ignore-vcs --no-ignore-dot)--no-ignore[don't respect ignore files]"
$no'(--ignore-global --ignore-parent --ignore-vcs --ignore-dot)--ignore[respect ignore files]'