diff options
author | psg <> | 2016-11-06 18:35:45 +0000 |
---|---|---|
committer | psg <> | 2016-11-06 18:35:45 +0000 |
commit | fd5f3b008a6f090a8389101193673c68a5bc21a2 (patch) | |
tree | 7f57f365376db237687e4ff3e98f1e8598c32fad | |
parent | 1b00157728e1dc9552e47fab89b6d3dae39d5e59 (diff) |
Bug fix #708317
-rw-r--r-- | debian-changelog-mode.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debian-changelog-mode.el b/debian-changelog-mode.el index 69e7c70..79551c1 100644 --- a/debian-changelog-mode.el +++ b/debian-changelog-mode.el @@ -353,6 +353,8 @@ ;; V1.97 06Nov2016 Pierre Carrier (on 2013-07-04) ;; https://bugs.launchpad.net/ubuntu/+source/emacs-goodies-el/+bug/1197870 ;; Bug fix #803767 debian-changelog-mode: don't rely on external date +;; V1.98 06Nov2016 Kumar Appaiah <a.kumar@alumni.iitm.ac.in> +;; highlight backports (Closes: #708317) ;;; Acknowledgements: (These people have contributed) ;; Roland Rosenfeld <roland@debian.org> @@ -1444,6 +1446,7 @@ interface to set it, or simply set the variable (3 font-lock-string-face nil t) (4 debian-changelog-warning-face nil t)) '(debian-changelog-fontify-stable . debian-changelog-warning-face) + '(debian-changelog-fontify-backports . debian-changelog-warning-face) '(debian-changelog-fontify-frozen . font-lock-type-face) '(debian-changelog-fontify-unstable . font-lock-string-face) '(debian-changelog-fontify-experimental . debian-changelog-warning-face) @@ -1585,6 +1588,12 @@ match 1 -> package name (list (match-beginning 1)(match-end 1))) t)) +(defun debian-changelog-fontify-backports (limit) + (when (re-search-forward "^\\sw.* (.+).* \\([a-z][a-z]*-backports\\)" limit t) + (store-match-data + (list (match-beginning 1)(match-end 1))) + t)) + ;; ;; browse-url interfaces, by Peter Galbraith, Feb 23 2001 ;; |