From b710ca62c00ef90a46fc90a9ae06fdf3bba87bc2 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Wed, 7 Dec 2022 02:12:05 -0800 Subject: [PATCH] c++-ts-mode: Highlight nullptr as a constant * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add nullptr. --- lisp/progmodes/c-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 0c66b4959e0..6f1488917a6 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -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 -- 2.39.2