Make OptreeCheck.pm more forgiving about parent pad indexes
Rafael Garcia-Suarez [Tue, 25 Sep 2007 09:45:46 +0000 (09:45 +0000)]
p4raw-id: //depot/perl@31964

ext/B/t/OptreeCheck.pm

index 4b0567e..9de97e5 100644 (file)
@@ -742,6 +742,7 @@ sub mkCheckRex {
     $str =~ s/match\\\(.*?\\\)/match\(.*?\)/msg;       # match args
     $str =~ s/(0x[0-9A-Fa-f]+)/0x[0-9A-Fa-f]+/msg;     # hexnum values
     $str =~ s/".*?"/".*?"/msg;                         # quoted strings
+    $str =~ s/FAKE:(\w):\d+/FAKE:$1:\\d+/msg;          # parent pad index
 
     $str =~ s/(\d refs?)/\\d+ refs?/msg;               # 1 ref, 2+ refs (plural)
     $str =~ s/leavesub \[\d\]/leavesub [\\d]/msg;      # for -terse