Skip to content

Commit

Permalink
fix RepetitionCountDecimalEmpty is not covered in `ast::Error::desc…
Browse files Browse the repository at this point in the history
…ription`
  • Loading branch information
rhysd committed Jul 15, 2022
1 parent 9d1211e commit 31d78a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion regex-syntax/src/ast/mod.rs
Expand Up @@ -202,13 +202,15 @@ impl error::Error for Error {
GroupUnclosed => "unclosed group",
GroupUnopened => "unopened group",
NestLimitExceeded(_) => "nest limit exceeded",
RepetitionCountDecimalEmpty => {
"invalid decimal in repetition quantifier"
}
RepetitionCountInvalid => "invalid repetition count range",
RepetitionCountUnclosed => "unclosed counted repetition",
RepetitionMissing => "repetition operator missing expression",
UnicodeClassInvalid => "invalid Unicode character class",
UnsupportedBackreference => "backreferences are not supported",
UnsupportedLookAround => "look-around is not supported",
_ => unreachable!(),
}
}
}
Expand Down

0 comments on commit 31d78a6

Please sign in to comment.