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:
parent
86187d43e2
commit
03d4b96da6
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue