1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00

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.
This commit is contained in:
Yuan Fu 2024-05-08 20:27:12 -07:00
parent 86187d43e2
commit 03d4b96da6
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -597,8 +597,9 @@ MODE is either `c' or `cpp'."
(treesit-font-lock-rules (treesit-font-lock-rules
:language mode :language mode
:feature 'comment :feature 'comment
`((comment) @font-lock-comment-face `(((comment) @font-lock-doc-face
(comment) @contextual) (:match ,(rx bos "/**") @font-lock-doc-face))
(comment) @font-lock-comment-face)
:language mode :language mode
:feature 'preprocessor :feature 'preprocessor