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

Comparing rxvt-unicode/src/perl/selection (file contents):
Revision 1.10 by root, Tue Jan 3 21:36:15 2006 UTC vs.
Revision 1.13 by root, Fri Jan 6 17:03:14 2006 UTC

10} 10}
11 11
12my @patterns = ( 12my @patterns = (
13 # urls, just a heuristic 13 # urls, just a heuristic
14 qr{( 14 qr{(
15 (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+ 15 (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+
16 [^.] # do not include a trailing dot, its wrong too often 16 [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27(),~] # do not include a trailing dot, its wrong too often
17 )}x, 17 )}x,
18 18
19 # shell-like argument quoting 19 # shell-like argument quoting
20 qr{\G\s*( 20 qr{\G [\ \t|&;<>()] *(
21 (?: 21 (?:
22 [^"'\\ \t]+ 22 [^\\"'\ \t|&;<>()]+
23 | \\. 23 | \\.
24 | " ([^\\"]+ | \\. )* " 24 | " (?: [^\\"]+ | \\. )* "
25 | ' [^']* ' 25 | ' [^']* '
26 )+ 26 )+
27 )}xs, 27 )}xs,
28); 28);
29 29

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines