From: Vincenzo Pupillo Date: Mon, 1 Jul 2024 09:52:18 +0000 (+0200) Subject: Fontify destructor in c++-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=502adcb79e3c233f97d211955a5756baf062a166;p=emacs.git 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) (cherry picked from commit 53291e3d46ee81b2b0fb7594496d938eab61bc0f) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index db34339a0fd..6325fc20e6e 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -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