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
This commit is contained in:
Filippo Argiolas 2024-12-26 08:06:55 +01:00 committed by Yuan Fu
parent a9c1620809
commit 752ba27425
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View 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