Fontify destructor in c++-ts-mode
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add a rule for destructors. (Bug#71872)
This commit is contained in:
parent
d77f8a3475
commit
53291e3d46
1 changed files with 3 additions and 1 deletions
|
@ -674,7 +674,9 @@ MODE is either `c' or `cpp'."
|
|||
:language mode
|
||||
:feature 'definition
|
||||
;; Highlights identifiers in declarations.
|
||||
`((declaration
|
||||
`(,@(when (eq mode 'cpp)
|
||||
'((destructor_name (identifier) @font-lock-function-name-face)))
|
||||
(declaration
|
||||
declarator: (_) @c-ts-mode--fontify-declarator)
|
||||
|
||||
(field_declaration
|
||||
|
|
Loading…
Add table
Reference in a new issue