emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 b710ca62c00 2/4: c++-ts-mode: Highlight nullptr as a constant


From: Yuan Fu
Subject: emacs-29 b710ca62c00 2/4: c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 7 Dec 2022 15:02:38 -0500 (EST)

branch: emacs-29
commit b710ca62c00ef90a46fc90a9ae06fdf3bba87bc2
Author: Brian Leung <leungbk@posteo.net>
Commit: Yuan Fu <casouri@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]