gnome-terminal r2822 - trunk/src



Author: chpe
Date: Thu May 29 19:57:30 2008
New Revision: 2822
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2822&view=rev

Log:
Add the callto: match regex before the mailto: regex, to get correct highlighting.


Modified:
   trunk/src/terminal-screen.c

Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c	(original)
+++ trunk/src/terminal-screen.c	Thu May 29 19:57:30 2008
@@ -350,6 +350,12 @@
                              FLAVOR_DEFAULT_TO_HTTP);
 
   terminal_screen_match_add (screen,
+                             "\\<(callto|h323|sip):[" USERCHARS "]"
+                             "[" USERCHARS ".]*(" PORT "/[a-z0-9]+)?"
+                             "@" HOST "\\>",
+                             FLAVOR_VOIP_CALL);
+
+  terminal_screen_match_add (screen,
                              "\\<(mailto:)?[" USERCHARS "][" USERCHARS ".]*@"
                              "[" HOSTCHARS "]+\\." HOST "\\>",
                              FLAVOR_EMAIL);
@@ -359,12 +365,6 @@
                              HOST PORT "\\>",
                              FLAVOR_AS_IS);
 
-  terminal_screen_match_add (screen,
-                             "\\<(callto|h323|sip):[" USERCHARS "]"
-                             "[" USERCHARS ".]*(" PORT "/[a-z0-9]+)?"
-                             "@" HOST "\\>",
-                             FLAVOR_VOIP_CALL);
-
   /* Setup DND */
   target_list = gtk_target_list_new (NULL, 0);
   gtk_target_list_add_uri_targets (target_list, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]