]> git.eshelyaron.com Git - emacs.git/commitdiff
c++-ts-mode: Highlight nullptr as a constant
authorBrian Leung <leungbk@posteo.net>
Wed, 7 Dec 2022 10:12:05 +0000 (02:12 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 7 Dec 2022 20:01:51 +0000 (12:01 -0800)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add
nullptr.

lisp/progmodes/c-ts-mode.el

index 0c66b4959e0afff90516628af7b0fc79e6ab00c8..6f1488917a6e00c5f60bacbd629512456240e287 100644 (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