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
: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