Skip to content

Commit 31d78a6

Browse files
committed
fix RepetitionCountDecimalEmpty is not covered in ast::Error::description
1 parent 9d1211e commit 31d78a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

regex-syntax/src/ast/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,15 @@ impl error::Error for Error {
202202
GroupUnclosed => "unclosed group",
203203
GroupUnopened => "unopened group",
204204
NestLimitExceeded(_) => "nest limit exceeded",
205+
RepetitionCountDecimalEmpty => {
206+
"invalid decimal in repetition quantifier"
207+
}
205208
RepetitionCountInvalid => "invalid repetition count range",
206209
RepetitionCountUnclosed => "unclosed counted repetition",
207210
RepetitionMissing => "repetition operator missing expression",
208211
UnicodeClassInvalid => "invalid Unicode character class",
209212
UnsupportedBackreference => "backreferences are not supported",
210213
UnsupportedLookAround => "look-around is not supported",
211-
_ => unreachable!(),
212214
}
213215
}
214216
}

0 commit comments

Comments
 (0)