Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make <alpha> LTM-declarative.
  • Loading branch information
jnthn committed May 27, 2012
1 parent 16654ba commit cf4bf1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/QRegex/NFA.nqp
Expand Up @@ -122,6 +122,10 @@ class QRegex::NFA {
if $node.name eq 'before' && !$node.negate {
self.regex_nfa($node[0][1]<orig_qast>, $from, 0);
}
elsif $node.name eq 'alpha' {
self.addedge($from, $to, $EDGE_CHARCLASS + $node.negate,
pir::const::CCLASS_ALPHABETIC)
}
elsif $subtype eq 'zerowidth' {
$node.negate
?? self.fate($node, $from, $to)
Expand Down

0 comments on commit cf4bf1f

Please sign in to comment.