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.16 by root, Sun Jan 8 01:32:38 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 forms of quoting 20 # common "parentheses"
21 qr{(?:^|\s) [`] ([^‘`']+) ['] (?:\s|$)}x, 21 qr{(?:^|\s) ‘ ([^‘’]+?) ’ (?:\s|\)|$)}x,
22 qr{(?:^|\s) ` ([^`']+?) ' (?:\s|\)|$)}x,
23 qr{ \{ ([^{}]+?) \} }x,
24 qr{ \[ ([^{}]+?) \] }x,
22 25
23 # shell-like argument quoting 26 # shell-like argument quoting, basically always matches
24 qr{\G [\ \t|&;<>()] *( 27 qr{\G [\ \t|&;<>()] *(
25 (?: 28 (?:
26 [^\\"'\ \t|&;<>()]+ 29 [^\\"'\ \t|&;<>()]+
27 | \\. 30 | \\.
28 | " (?: [^\\"]+ | \\. )* " 31 | " (?: [^\\"]+ | \\. )* "

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines