From b39823a4f9d13a5d313ca665e06884b587bceb9a Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Wed, 3 Jun 2026 20:17:25 +0200 Subject: regex: explicitly return an error for unsupported non-greedy repetitions --- src/parse/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/parse/mod.rs') diff --git a/src/parse/mod.rs b/src/parse/mod.rs index f61baf9..10ea979 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -1186,6 +1186,13 @@ pub enum ParseError { NotAWhile, ExpectedKeyword(Keyword), + + NotYetImplemented(NotImplementedKind), +} + +#[derive(Debug, PartialEq)] +pub enum NotImplementedKind { + NonGreedyRegexRepetition, } type Result = std::result::Result; -- cgit v1.2.3