projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d77f8a3
)
Fontify destructor in c++-ts-mode
author
Vincenzo Pupillo
<vincenzo.pupillo@unimi.it>
Mon, 1 Jul 2024 09:52:18 +0000
(11:52 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 13 Jul 2024 10:01:44 +0000
(13:01 +0300)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings):
Add a rule for destructors. (Bug#71872)
lisp/progmodes/c-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index e7f74fc53f25f361a812e4ccabc40bfe781d9054..2ac163d7a7ea08ad0bb8cbe926a5b1c6485670ea 100644
(file)
--- 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