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.41 by root, Sat Nov 4 22:56:30 2006 UTC vs.
Revision 1.50 by root, Sat Jan 12 22:13:47 2008 UTC

32 () 32 ()
33} 33}
34 34
35# "find interesting things"-patterns 35# "find interesting things"-patterns
36my @mark_patterns = ( 36my @mark_patterns = (
37# qr{ ([[:word:]]+) }x,
38 qr{ ([^[:space:]]+) }x,
39
37 # common types of "parentheses" 40 # common types of "parentheses"
41 qr{ (?<![^[:space:]]) [`'] ([^`']+) [`'] (?![^[:space:]]) }x,
38 qr{ (?<![^[:space:]]) ‘ ([^‘’]+) ’ (?![^[:space]]) }x, 42 qr{ (?<![^[:space:]]) ‘ ([^‘’]+) ’ (?![^[:space:]]) }x,
39 qr{ (?<![^[:space:]]) ` ([^`']+) ' (?![^[:space]]) }x, 43 qr{ (?<![^[:space:]]) ([^“”]+) (?![^[:space:]]) }x,
44
45 qr{ (?<![^[:space:]]) (' [^[:space:]] [^']* ') }x,
46 qr{ (' [^']* [^[:space:]] ') (?![^[:space:]]) }x,
40 qr{ (?<![^[:space:]]) (" [^[:space:]] [^"]* ") }x, 47 qr{ (?<![^[:space:]]) (" [^[:space:]] [^"]* ") }x,
41 qr{ (" [^"]* [^[:space:]] ") (?![^[:space]]) }x, 48 qr{ (" [^"]* [^[:space:]] ") (?![^[:space:]]) }x,
42 qr{ \< ([^<>[:space:]]+) \> }x, 49
43 qr{ \{ ([^{}[:space:]]+) \} }x, 50 qr{ \{ ([^\{\}]+) \} }x,
44 qr{ \[ ([^{}[:space:]]+) \] }x,
45 qr{ \( ([^()[:space:]]+) \) }x, 51 qr{ \( ([^\(\)]+) \) }x,
52 qr{ \[ ([^\[\]]+) \] }x,
53 qr{ \< ([^\<\>]+) \> }x,
46 54
47 # urls, just a heuristic 55 # urls, just a heuristic
48 qr{( 56 qr{(
49 (?:https?://|ftp://|news://|mailto:|file://|\bwww\.)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~#]+ 57 (?:https?://|ftp://|news://|mailto:|file://|\bwww\.)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~#]+
50 [ab-zA-Z0-9\-\@;\/?:&=%\$_+*()~] # exclude some trailing characters (heuristic) 58 [ab-zA-Z0-9\-\@;\/?:&=%\$_+*()~] # exclude some trailing characters (heuristic)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines