1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

c++-ts-mode: Highlight nullptr as a constant

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add
nullptr.
This commit is contained in:
Brian Leung 2022-12-07 02:12:05 -08:00 committed by Yuan Fu
parent d31a253983
commit b710ca62c0
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -233,7 +233,8 @@ MODE is either `c' or `cpp'."
(false) @font-lock-constant-face
(null) @font-lock-constant-face
,@(when (eq mode 'cpp)
'((this) @font-lock-constant-face)))
'((this) @font-lock-constant-face
(nullptr) @font-lock-constant-face)))
:language mode
:feature 'keyword