Skip to content

Commit

Permalink
fix #102: disallow forward references in Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloso committed Nov 5, 2023
1 parent cf4b92f commit 89ae3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pomsky-lib/src/exprs/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 89ae3d4

Please sign in to comment.