--- rxvt-unicode/src/perl/selection 2006/01/08 05:50:27 1.17 +++ rxvt-unicode/src/perl/selection 2006/01/10 21:20:53 1.19 @@ -14,14 +14,14 @@ # urls, just a heuristic qr{( (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+ - [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27(),~] # do not include a trailing dot, its wrong too often + [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27()~] # exclude some trailing characters (heuristic) )}x, # common "parentheses" - qr{(?:^|\s) ‘ ([^‘’]+?) ’ (?:\s|$)}x, - qr{(?:^|\s) ` ([^`']+?) ' (?:\s|$)}x, - qr{ \{ ([^{}]+?) \} }x, - qr{ \[ ([^{}]+?) \] }x, + qr{(?:^|\s) ‘ ([^‘’]+?) ’ (?:\s|\)|$)}x, + qr{(?:^|\s) ` ([^`']+?) ' (?:\s|\)|$)}x, + qr{ \{ ([^{}]+?) \} }x, + qr{ \[ ([^{}]+?) \] }x, # shell-like argument quoting, basically always matches qr{\G [\ \t|&;<>()] *(