diff --git a/pomsky-lib/src/exprs/reference.rs b/pomsky-lib/src/exprs/reference.rs index ef8f726..062f483 100644 --- a/pomsky-lib/src/exprs/reference.rs +++ b/pomsky-lib/src/exprs/reference.rs @@ -102,7 +102,7 @@ impl<'i> RuleExt<'i> for Reference<'i> { Err(CompileErrorKind::Unsupported(direction.into(), options.flavor).at(self.span)) } - RegexFlavor::JavaScript | RegexFlavor::Python + RegexFlavor::JavaScript | RegexFlavor::Python | RegexFlavor::Ruby if direction == ReferenceDirection::Forwards => { Err(CompileErrorKind::Unsupported(Feature::ForwardReference, options.flavor)