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

Comparing rxvt-unicode/src/perl/matcher (file contents):
Revision 1.11 by root, Sun Jun 10 17:39:54 2012 UTC vs.
Revision 1.12 by sf-tpope, Mon Aug 6 19:25:59 2012 UTC

47=cut 47=cut
48 48
49my $url = 49my $url =
50 qr{ 50 qr{
51 (?:https?://|ftp://|news://|mailto:|file://|\bwww\.) 51 (?:https?://|ftp://|news://|mailto:|file://|\bwww\.)
52 [a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#]* 52 [\w\-\@;\/?:&=%\$.+!*\x27,~#]*
53 ( 53 (
54 \([a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#]*\)| # Allow a pair of matched parentheses 54 \([\w\-\@;\/?:&=%\$.+!*\x27,~#]*\)| # Allow a pair of matched parentheses
55 [a-zA-Z0-9\-\@;\/?:&=%\$_+*~] # exclude some trailing characters (heuristic) 55 [\w\-\@;\/?:&=%\$+*~] # exclude some trailing characters (heuristic)
56 )+ 56 )+
57 }x; 57 }x;
58 58
59sub on_key_press { 59sub on_key_press {
60 my ($self, $event, $keysym, $octets) = @_; 60 my ($self, $event, $keysym, $octets) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines