Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add missing CURSOR method to NQPMatch
  • Loading branch information
diakopter committed Nov 20, 2011
1 parent 4ee92b6 commit e1a19de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/QRegex/Cursor.nqp
Expand Up @@ -358,6 +358,7 @@ class NQPMatch is NQPCapture {

method from() { $!from }
method to() { $!to }
method CURSOR() { $!cursor }
method Str() is parrot_vtable('get_string') { nqp::substr($!orig, $!from, $!to-$!from) }
method () is parrot_vtable('get_integer') { +self.Str() }
method () is parrot_vtable('get_number') { +self.Str() }
Expand Down

0 comments on commit e1a19de

Please sign in to comment.