--- rxvt-unicode/src/perl/selection 2006/01/05 01:07:31 1.12 +++ rxvt-unicode/src/perl/selection 2006/01/06 20:50:58 1.14 @@ -16,17 +16,22 @@ [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) = @_;