mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix URL highlighting, lost in the 2.10 upgrade.
PR: 78903 Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
This commit is contained in:
parent
661cdc8e18
commit
296c9ffc70
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131369
4 changed files with 56 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= gnometerminal
|
||||
PORTVERSION= 2.10.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11 gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= sources/gnome-terminal/2.10
|
||||
|
|
27
x11/gnome-terminal/files/patch-src::terminal-screen.c
Normal file
27
x11/gnome-terminal/files/patch-src::terminal-screen.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
--- src/terminal-screen.c.orig Thu Mar 3 15:13:08 2005
|
||||
+++ src/terminal-screen.c Wed Mar 16 03:11:08 2005
|
||||
@@ -246,18 +246,18 @@
|
||||
#define USER "[" USERCHARS "]+(:["PASSCHARS "]+)?"
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<(" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_AS_IS);
|
||||
+ "[[:<:]](" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
+ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_AS_IS);
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_DEFAULT_TO_HTTP);
|
||||
+ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
+ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_DEFAULT_TO_HTTP);
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>", FLAVOR_MAILTO);
|
||||
+ "[[:<:]](mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]", FLAVOR_MAILTO);
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+@[" HOSTCHARS ".]+(:[0-9]+)?\\>", FLAVOR_AS_IS);
|
||||
+ "[[:<:]]news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+@[" HOSTCHARS ".]+(:[0-9]+)?[[:>:]]", FLAVOR_AS_IS);
|
||||
|
||||
|
||||
terminal_screen_setup_dnd (screen);
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= gnometerminal
|
||||
PORTVERSION= 2.10.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11 gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= sources/gnome-terminal/2.10
|
||||
|
|
27
x11/gnometerminal/files/patch-src::terminal-screen.c
Normal file
27
x11/gnometerminal/files/patch-src::terminal-screen.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
--- src/terminal-screen.c.orig Thu Mar 3 15:13:08 2005
|
||||
+++ src/terminal-screen.c Wed Mar 16 03:11:08 2005
|
||||
@@ -246,18 +246,18 @@
|
||||
#define USER "[" USERCHARS "]+(:["PASSCHARS "]+)?"
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<(" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_AS_IS);
|
||||
+ "[[:<:]](" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
+ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_AS_IS);
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_DEFAULT_TO_HTTP);
|
||||
+ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?"
|
||||
+ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_DEFAULT_TO_HTTP);
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>", FLAVOR_MAILTO);
|
||||
+ "[[:<:]](mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]", FLAVOR_MAILTO);
|
||||
|
||||
terminal_widget_match_add (screen->priv->term,
|
||||
- "\\<news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+@[" HOSTCHARS ".]+(:[0-9]+)?\\>", FLAVOR_AS_IS);
|
||||
+ "[[:<:]]news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+@[" HOSTCHARS ".]+(:[0-9]+)?[[:>:]]", FLAVOR_AS_IS);
|
||||
|
||||
|
||||
terminal_screen_setup_dnd (screen);
|
Loading…
Add table
Reference in a new issue