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.17 by root, Sun Jan 8 05:50:27 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,
23 qr{ \{ ([^{}]+?) \} }x, 23 qr{ \{ ([^{}]+?) \} }x,
24 qr{ \[ ([^{}]+?) \] }x, 24 qr{ \[ ([^{}]+?) \] }x,
25 25
26 # shell-like argument quoting, basically always matches 26 # shell-like argument quoting, basically always matches
27 qr{\G [\ \t|&;<>()] *( 27 qr{\G [\ \t|&;<>()] *(
28 (?: 28 (?:
29 [^\\"'\ \t|&;<>()]+ 29 [^\\"'\ \t|&;<>()]+

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines