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

Commit

Permalink
Fix Cursor.parse to return a Match object.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Oct 16, 2009
1 parent c381a19 commit 3095780
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Regex/Cursor.pir
Expand Up @@ -146,10 +146,11 @@ If C<regex> is omitted, then use the C<TOP> rule for the grammar.
regex = find_method self, 'TOP'
regex_done:

.local pmc cur
.local pmc cur, match
cur = self.'!cursor_init'(target, options :flat :named)
cur = cur.regex()
.return (cur)
match = cur.'MATCH'()
.return (match)
.end


Expand Down

0 comments on commit 3095780

Please sign in to comment.