From: Brian Leung Date: Wed, 7 Dec 2022 10:12:05 +0000 (-0800) Subject: c++-ts-mode: Highlight nullptr as a constant X-Git-Tag: emacs-29.0.90~1318 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b710ca62c00ef90a46fc90a9ae06fdf3bba87bc2;p=emacs.git c++-ts-mode: Highlight nullptr as a constant * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add nullptr. --- 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