diff --git a/pomsky-lib/src/exprs/group.rs b/pomsky-lib/src/exprs/group.rs index 0f4c6d1..061f192 100644 --- a/pomsky-lib/src/exprs/group.rs +++ b/pomsky-lib/src/exprs/group.rs @@ -83,11 +83,7 @@ impl<'i> RuleExt<'i> for Group<'i> { if let GroupKind::Atomic = self.kind { options.allowed_features.require(PomskyFeatures::ATOMIC_GROUPS, self.span)?; - // Python supports atomic groups since 3.11, but it's fairly new, so we forbid - // it for now - if let RegexFlavor::JavaScript | RegexFlavor::Python | RegexFlavor::Rust = - options.flavor - { + if let RegexFlavor::JavaScript | RegexFlavor::Rust = options.flavor { return Err(CompileErrorKind::Unsupported(Feature::AtomicGroups, options.flavor) .at(self.span)); }