Skip to content

Commit

Permalink
RakuAST: implement support for regex char classes with multiple ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Jan 4, 2023
1 parent 5f7ff01 commit 2814e01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Raku/ast/regex.rakumod
Expand Up @@ -1424,7 +1424,11 @@ class RakuAST::Regex::CharClassElement::Enumeration is RakuAST::Regex::CharClass
}

else {
nqp::die('nyi cclass compilation')
self.negated ??
QAST::Regex.new( :rxtype<concat>, :negate(1),
QAST::Regex.new( :rxtype<conj>, :subtype<zerowidth>, |@alts ),
QAST::Regex.new( :rxtype<cclass>, :name<.> ) ) !!
QAST::Regex.new( :rxtype<alt>, |@alts );
}
}

Expand Down

0 comments on commit 2814e01

Please sign in to comment.