--- rxvt-unicode/src/perl/selection 2006/01/04 20:43:38 1.11 +++ rxvt-unicode/src/perl/selection 2006/01/06 20:50:58 1.14 @@ -12,21 +12,26 @@ my @patterns = ( # urls, just a heuristic qr{( - (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+ - [^.] # do not include a trailing dot, its wrong too often + (?: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 )}x, + # common forms of quoting + qr{(?:^|\s) [‘`] ([^‘`’']+) [’'] (?:\s|$)}x, + # shell-like argument quoting qr{\G [\ \t|&;<>()] *( (?: [^\\"'\ \t|&;<>()]+ | \\. - | " ([^\\"]+ | \\. )* " + | " (?: [^\\"]+ | \\. )* " | ' [^']* ' )+ - )}xs, + )}x, ); +my $x = "‘hallole’"; + sub on_sel_extend { my ($self) = @_;