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.18 by root, Mon Jan 9 01:06:55 2006 UTC vs.
Revision 1.19 by root, Tue Jan 10 21:20:53 2006 UTC

12# "find interetsing things"-patterns 12# "find interetsing things"-patterns
13my @mark_patterns = ( 13my @mark_patterns = (
14 # urls, just a heuristic 14 # urls, just a heuristic
15 qr{( 15 qr{(
16 (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+ 16 (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+
17 [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27(),~] # do not include a trailing dot, its wrong too often 17 [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27()~] # exclude some trailing characters (heuristic)
18 )}x, 18 )}x,
19 19
20 # common "parentheses" 20 # common "parentheses"
21 qr{(?:^|\s) ‘ ([^‘’]+?) ’ (?:\s|\)|$)}x, 21 qr{(?:^|\s) ‘ ([^‘’]+?) ’ (?:\s|\)|$)}x,
22 qr{(?:^|\s) ` ([^`']+?) ' (?:\s|\)|$)}x, 22 qr{(?:^|\s) ` ([^`']+?) ' (?:\s|\)|$)}x,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines