mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-09-01 21:03:55 -07:00
globset: support nested alternates
For example, `**/{node_modules/**/*/{ts,js},crates/**/*.{rs,toml}`. I originally didn't add this I think for implementation simplicity, but it turns out that it really isn't much work to do. There might have also been some odd behavior in the regex engine for dealing with empty alternates, but that has all been long fixed. Closes #3048, Closes #3112
This commit is contained in:
committed by
Andrew Gallant
parent
2d763a9a1b
commit
43eff4397f
@@ -182,8 +182,11 @@ pub enum ErrorKind {
|
||||
UnopenedAlternates,
|
||||
/// Occurs when a `{` is found without a matching `}`.
|
||||
UnclosedAlternates,
|
||||
/// Occurs when an alternating group is nested inside another alternating
|
||||
/// group, e.g., `{{a,b},{c,d}}`.
|
||||
/// **DEPRECATED**.
|
||||
///
|
||||
/// This error used to occur when an alternating group was nested inside
|
||||
/// another alternating group, e.g., `{{a,b},{c,d}}`. However, this is now
|
||||
/// supported and as such this error cannot occur.
|
||||
NestedAlternates,
|
||||
/// Occurs when an unescaped '\' is found at the end of a glob.
|
||||
DanglingEscape,
|
||||
|
Reference in New Issue
Block a user