From: Yuan Fu Date: Thu, 9 May 2024 03:27:12 +0000 (-0700) Subject: Fontify doc comment in c-ts-mode with doc-face X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~1591 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=03d4b96da62fbb7abfb7fa8fcfc963313e394f22;p=emacs.git Fontify doc comment in c-ts-mode with doc-face * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add rule for /** comments. --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index a1b2b1f500c..2d431d75d21 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -597,8 +597,9 @@ MODE is either `c' or `cpp'." (treesit-font-lock-rules :language mode :feature 'comment - `((comment) @font-lock-comment-face - (comment) @contextual) + `(((comment) @font-lock-doc-face + (:match ,(rx bos "/**") @font-lock-doc-face)) + (comment) @font-lock-comment-face) :language mode :feature 'preprocessor