branch: elpa/textile-mode commit 0e42bcd0f8459dae24c070d0df4ac93804255ef9 Author: Matus Goljer <dota.k...@gmail.com> Commit: Matus Goljer <dota.k...@gmail.com>
Made URL regexp non-capturing --- textile-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/textile-mode.el b/textile-mode.el index f2862f99ba..0bbbe97808 100644 --- a/textile-mode.el +++ b/textile-mode.el @@ -73,7 +73,8 @@ non-matching parentheses" '( "<>" "<" ">" "=" "_" "\\^" "~" "\\\\[0-9]+" "/[0-9]+")) ; from gnus-button-url-regexp -(setq textile-url-regexp "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|nntp\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)\\(//[-a-z0-9_.]+:[0-9]*\\)?[-a-z0-9_=!?#$@~%&*+\\/:;.,[:word:]]+[-a-z0-9_=#$@~%&*+\\/[:word:]]\\)") +(defvar textile-url-regexp "\\(?:\\b\\(?:\\(?:www\\.\\|\\(?:s?https?\\|ftp\\|file\\|gopher\\|nntp\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)\\(?://[-a-z0-9_.]+:[0-9]*\\)?[-a-z0-9_=!?#$@~%&*+\\/:;.,[:word:]]+[-a-z0-9_=#$@~%&*+\\/[:word:]]\\)\\)" + "Regexp matching a URL.") (defun textile-block-matcher (bloc)