Author: bernhard
Date: Mon Apr  2 13:09:42 2007
New Revision: 17948

Modified:
   trunk/t/compilers/pge/p6regex/rx_lookarounds

Log:
Add test for non-greedy match with a 'before' assertion.


Modified: trunk/t/compilers/pge/p6regex/rx_lookarounds
==============================================================================
--- trunk/t/compilers/pge/p6regex/rx_lookarounds        (original)
+++ trunk/t/compilers/pge/p6regex/rx_lookarounds        Mon Apr  2 13:09:42 2007
@@ -29,8 +29,10 @@
 
 a[b}           \t\n\r !"#$%&'()*+,-./:;<=>[EMAIL 
PROTECTED]|}0123456789ABCDEFGHIJabcdefghij    /rule error/    mismatched close
 
-c <before .d>          abacad          /mob: <c @ 3>/                  one 
character and lookahead <before>
+c <before .d>          abacad          /mob: <c @ 3>/                          
one character and lookahead <before>
 .* <before .d>         abacad          /mob: <abac @ 0>/                       
multiple characters and lookahead <before>
 .* <before .\<>                abaca<d         /mob: <abac @ 0>/               
        multiple characters and lookahead <before> with a '<'
+.* <before \<>         aba<ca<d                /mob: <aba<ca @ 0>/             
greedy any character and lookahead <before> with a '<'
+.*? <before \<>                aba<ca<d                /mob: <aba @ 0>/        
        non-greedy any character and lookahead <before> with a '<'
 
 ## vim: noexpandtab tabstop=4 shiftwidth=4

Reply via email to