branch: elpa/drupal-mode
commit cd07abb5446e20ff79082e822d2c464b866fb2f1
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Made it possible to refer to issue comments.
The convention to put issue numbers in brackets at patches and have the
issue number be a clickable link, i.e:
projects[ctools][patch][1277908] =
http://drupal.org/files/ctools-uuids_for_exported_objects-1277908-118.patch
is extended so we can have add i.e comment numbers and still have them
clickable, i.e.:
projects[services][patch]['1912842-9'] =
http://drupal.org/files/services-rest_server_parse_xml_with_arrays-1912842-9.patch
projects[services][patch]['1912842-13'] =
http://drupal.org/files/issues/services-rest_server_parse_xml_with_arrays-1912842
---
drush-make-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drush-make-mode.el b/drush-make-mode.el
index 2ccf22d8cd..8c8bd5e5dc 100644
--- a/drush-make-mode.el
+++ b/drush-make-mode.el
@@ -1,6 +1,6 @@
;;; drush-make-mode.el --- Major mode for drush make files
-;; Copyright (C) 2013 Arne Jørgensen
+;; Copyright (C) 2013, 2014 Arne Jørgensen
;; Author: Arne Jørgensen <[email protected]>
;; Keywords: languages, tools, extensions
@@ -35,7 +35,7 @@
;; Use `bug-reference-mode' for linking issues and patches.
(set (make-local-variable 'bug-reference-url-format)
"http://drupal.org/node/%s")
- (set (make-local-variable 'bug-reference-bug-regexp)
"\\(?:\\#\\(?2:[0-9]+\\)\\|\\[['\"]?\\(?2:[0-9]+\\)\\(['\"]?\\]\\)\\)")
+ (set (make-local-variable 'bug-reference-bug-regexp)
"\\(?:\\#\\(?2:[0-9]+\\)\\|\\[['\"]?\\(?2:[0-9]+\\)\\([^0-9].*\\)?\\(['\"]?\\]\\)\\)")
(bug-reference-mode)
;; Use `goto-address-mode' for link highlighting.