summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-08-16 08:48:08 +0000
committerGuido Günther <agx@sigxcpu.org>2015-08-16 08:48:08 +0000
commita4e203cb5cbcb49906ac284c4e9687080a1b9175 (patch)
tree2892e0ddc67737239e949016c359a4224b729be5 /conf
parent1bd633895d6d2e270724151f66d639d9f53a1ffd (diff)
Add simple emacs CVE list highlighting
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@36095 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'conf')
-rw-r--r--conf/cvelist.el24
1 files changed, 24 insertions, 0 deletions
diff --git a/conf/cvelist.el b/conf/cvelist.el
new file mode 100644
index 0000000000..3eb4bacceb
--- /dev/null
+++ b/conf/cvelist.el
@@ -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"))

© 2014-2024 Faster IT GmbH | imprint | privacy policy