[Secure-testing-commits] r36095 - / conf
Guido Guenther
agx at moszumanska.debian.org
Sun Aug 16 08:48:08 UTC 2015
Author: agx
Date: 2015-08-16 08:48:08 +0000 (Sun, 16 Aug 2015)
New Revision: 36095
Added:
conf/
conf/cvelist.el
Log:
Add simple emacs CVE list highlighting
Added: conf/cvelist.el
===================================================================
--- conf/cvelist.el (rev 0)
+++ conf/cvelist.el 2015-08-16 08:48:08 UTC (rev 36095)
@@ -0,0 +1,24 @@
+;; Major mode for Debian's CVE list
+;; currently only does some syntax highlighting
+;;
+;; Can be enabled via
+;;
+;; (autoload 'debian-cvelist-mode "cvelist.el"
+;; "Major mode for debian CVE lists" t)
+;; (setq auto-mode-alist
+;; (cons '("list" . debian-cvelist-mode) auto-mode-alist))
+
+
+(setq debian-cvelist-highlights
+ '(("^CVE-[0-9]\\{4\\}-[0-9X]\\{4\\}" . font-lock-function-name-face)
+ ("^\tNOTE:" . font-lock-comment-delimiter-face)
+ ("^\tTODO:" . font-lock-warning-face)
+ ("^\t\\(RESERVED\\|NOT-FOR-US\\|REJECTED\\)" . font-lock-keyword-face)
+ ("^CVE-[0-9]\\{4\\}-[0-9X]\\{4\\}" "\\[\\(.*\\)\\]$" nil nil (1 font-lock-variable-name-face))
+ ("\\<unfixed\\|undetermined\\>" . font-lock-warning-face)
+ ("\\<end-of-life\\|not-affected\\|no-dsa\\>" . font-lock-constant-face)
+ ))
+
+(define-derived-mode debian-cvelist-mode fundamental-mode
+ (setq font-lock-defaults '(debian-cvelist-highlights))
+ (setq mode-name "debian cvelist"))
More information about the Secure-testing-commits
mailing list