ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/matcher
(Generate patch)

Comparing rxvt-unicode/src/perl/matcher (file contents):
Revision 1.22 by sf-exg, Thu Jun 12 12:16:42 2014 UTC vs.
Revision 1.23 by sf-exg, Thu Jun 12 12:19:09 2014 UTC

276 @exec = ($launcher, $match); 276 @exec = ($launcher, $match);
277 } else { 277 } else {
278 # It'd be nice to just access a list like ($&,$1,$2...), 278 # It'd be nice to just access a list like ($&,$1,$2...),
279 # but alas, m//g behaves differently in list context. 279 # but alas, m//g behaves differently in list context.
280 @exec = map { s/\$(\d+)|\$\{(\d+)\}/ 280 @exec = map { s/\$(\d+)|\$\{(\d+)\}/
281 substr $text, $begin[$1 || $2], $end[$1 || $2] - $begin[$1 || $2]) 281 substr $text, $begin[$1 || $2], $end[$1 || $2] - $begin[$1 || $2]
282 /egx; $_ } split /\s+/, $launcher; 282 /egx; $_ } split /\s+/, $launcher;
283 } 283 }
284 284
285 push @matches, [ $begin[0], $match, @exec ]; 285 push @matches, [ $begin[0], $match, @exec ];
286 } 286 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines