From adb614f7bff8ac41a9bfe154a313726e062531c2 Mon Sep 17 00:00:00 2001 From: Filippo Argiolas Date: Thu, 26 Dec 2024 08:06:55 +0100 Subject: [PATCH] Improve doxygen font-lock rules in c-ts-mode (bug#75012) And also c++-ts-mode. * lisp/progmodes/c-ts-common.el: (c-ts-mode-doxygen-comment-font-lock-settings): Add rules for type, storageclass and note/warning/error tags. Copyright-paperwork-exempt: yes (cherry picked from commit 752ba27425db5332fc18e962117f24b9300ccf78) --- lisp/progmodes/c-ts-common.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index 2460fbb7258..0ded2de7068 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -397,7 +397,12 @@ and /* */ comments. SOFT works the same as in :override t :feature 'keyword '((tag_name) @font-lock-constant-face - (storageclass) @font-lock-constant-face) + (type) @font-lock-type-face + (emphasis) @bold + ((tag_name) @bold (:match ".note" @bold)) + ((tag_name) @warning (:match ".warning" @warning)) + ((tag_name) @error (:match ".error" @error)) + (storageclass) @font-lock-keyword-face) :language 'doxygen :override t -- 2.39.5