Author: pmichaud Date: 2009-04-24 00:02:51 +0200 (Fri, 24 Apr 2009) New Revision: 26384
Modified: docs/Perl6/Spec/S05-regex.pod Log: Update goal-matching semantics to allow expression backtracking. Modified: docs/Perl6/Spec/S05-regex.pod =================================================================== --- docs/Perl6/Spec/S05-regex.pod 2009-04-23 21:08:31 UTC (rev 26383) +++ docs/Perl6/Spec/S05-regex.pod 2009-04-23 22:02:51 UTC (rev 26384) @@ -708,7 +708,7 @@ So it really does pay attention to the left bracket as well, and it actually rewrites our example to something more like: - $<OPEN> = '(' <SETGOAL: ')'> <expression> [ $GOAL || <FAILGOAL> ] + $<OPEN> = '(' <SETGOAL: ')'> [ <expression> $GOAL || <FAILGOAL> ] Note that you can use this construct to set up expectations for a closing construct even when there's no opening bracket: