Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Goal matching syntax fails to match, not throws.
Since HLL::Grammar already overrides it, our parse errors still work
out fine. This just changes the default behavior for userland.
  • Loading branch information
jnthn committed Jun 30, 2015
1 parent 64945f1 commit 121db36
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/QRegex/Cursor.nqp
Expand Up @@ -730,10 +730,7 @@ role NQPCursorRole is export {
}

method FAILGOAL($goal, $dba?) {
unless $dba {
$dba := nqp::getcodename(nqp::callercode());
}
nqp::die("Unable to parse expression in $dba; couldn't find final $goal");
self."!cursor_start_cur"()
}
}

Expand Down

0 comments on commit 121db36

Please sign in to comment.