Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Allow cursors to return things other than Regex::Match.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Oct 19, 2009
1 parent 557d3bf commit 875be8a
Show file tree
Hide file tree
Showing 3 changed files with 481 additions and 760 deletions.
5 changes: 3 additions & 2 deletions src/Regex/Cursor.pir
Expand Up @@ -46,8 +46,9 @@ for the Cursor if one hasn't been created yet.
.local pmc match
match = getattribute self, '$!match'
if null match goto match_make
$I0 = isa match, ['Regex';'Match']
if $I0 goto match_done
$P0 = get_global '$!TRUE'
$I0 = issame match, $P0
unless $I0 goto match_done

# First, create a Match object and bind it
match_make:
Expand Down

0 comments on commit 875be8a

Please sign in to comment.