Tags: patch One approach at solving this problem would be to stop highlighting the URL at the first "'" character.
This matches what gnome-terminal, and others, do already even though I don't believe this character _should_ be escaped. This can be achieved by updating the regexp: deagol ~/evilvte/src $ diff --unified macro2.h macro2.h.new --- macro2.h 2017-02-09 07:40:21.972749915 +0200 +++ macro2.h.new 2017-02-09 07:40:38.256749654 +0200 @@ -130,7 +130,7 @@ #define LABEL_SUBMENU_IME "_Input Methods" #endif -#define MATCH_HTTP_DATA "((f|F)|(h|H)(t|T))(t|T)(p|P)(s|S)?://(([^|.< \t\r\n\\\"]*([.][^|< \t\r\n\\\"])?[^|.< \t\r\n\\\"]*)*[^< \t\r\n,;|\\\"]*[^|.< \t\r\n\\\"])?/*" +#define MATCH_HTTP_DATA "((f|F)|(h|H)(t|T))(t|T)(p|P)(s|S)?://(([^|.< \t\r\n\\\"']*([.][^|< \t\r\n\\\"'])?[^|.< \t\r\n\\\"']*)*[^< \t\r\n,;|\\\"']*[^|.< \t\r\n\\\"'])?/*" #define MATCH_FILE_DATA "(f|F)(i|I)(l|L)(e|E):///(([^|.< \t\r\n\\\"]*([.][^|< \t\r\n\\\"])?[^|.< \t\r\n\\\"]*)*[^< \t\r\n,;|\\\"]*[^|.< \t\r\n\\\"])?/*" #define MATCH_MAIL_DATA "(m|M)(a|A)(i|I)(l|L)(t|T)(o|O):(([^|.< \t\r\n\\\"]*([.][^|< \t\r\n\\\"])?[^|.< \t\r\n\\\"]*)*@[^< \t\r\n,;|\\\"]*[^|.< \t\r\n\\\"])?/*" That probably needs a sanity-check from the maintainer/upstream somebody else. I've just added ' everywhere I saw ". Steve --