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:
committed by
Eli Zaretskii
parent
d77f8a3475
commit
53291e3d46
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user