Skip to content

Commit

Permalink
Provide a way to manipulate highexpect.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 10, 2012
1 parent e6ea357 commit 45ecaf8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/QRegex/Cursor.nqp
Expand Up @@ -329,7 +329,17 @@ role NQPCursorRole is export {
}

method !highexpect() {
nqp::getattr($!shared, ParseShared, '@!highexpect')
nqp::getattr($!shared, ParseShared, '@!highexpect')
}

method !fresh_highexpect() {
my @old := nqp::getattr($!shared, ParseShared, '@!highexpect');
nqp::bindattr($!shared, ParseShared, '@!highexpect', []);
@old
}

method !set_highexpect(@highexpect) {
nqp::bindattr($!shared, ParseShared, '@!highexpect', @highexpect)
}

method !clear_highwater() {
Expand Down

0 comments on commit 45ecaf8

Please sign in to comment.