From 6552afaede8ca29dde8eeb0a7b78dfa0e138cec8 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 @@ c-ts-mode--font-lock-settings (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.38.1