]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve doxygen font-lock rules in c-ts-mode (bug#75012)
authorFilippo Argiolas <filippo.argiolas@gmail.com>
Thu, 26 Dec 2024 07:06:55 +0000 (08:06 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:58:36 +0000 (21:58 +0100)
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

index 2460fbb7258bac28048b3d05567913ab02fc36d5..0ded2de7068b3bdaffd48259e264ee25bbdddf83 100644 (file)
@@ -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