--- rxvt-unicode/src/perl/selection 2006/01/12 23:11:23 1.24 +++ rxvt-unicode/src/perl/selection 2006/01/12 23:30:51 1.25 @@ -23,11 +23,14 @@ # "find interetsing things"-patterns my @mark_patterns = ( # common types of "parentheses" - qr{(?:^|\s) ‘ ([^‘’]+?) ’ (?:\s|\)|$)}x, - qr{(?:^|\s) ` ([^`']+?) ' (?:\s|\)|$)}x, - qr{ \{ ([^{}]+?) \} }x, - qr{ \[ ([^{}]+?) \] }x, - qr{ \( ([^()]+?) \) }x, + qr{ (?[:space:]]+) \> }x, + qr{ \{ ([^{}[:space:]]+) \} }x, + qr{ \[ ([^{}[:space:]]+) \] }x, + qr{ \( ([^()[:space:]]+) \) }x, # urls, just a heuristic qr{( @@ -70,8 +73,6 @@ my $ofs = $-[1]; my $match = $1; - push @matches, [$ofs, length $match]; - for my $regex (@simplify_patterns) { if ($match =~ $regex) { $match = $1;