projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d31a253
)
c++-ts-mode: Highlight nullptr as a constant
author
Brian Leung
<leungbk@posteo.net>
Wed, 7 Dec 2022 10:12:05 +0000
(
02:12
-0800)
committer
Yuan 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index 0c66b4959e0afff90516628af7b0fc79e6ab00c8..6f1488917a6e00c5f60bacbd629512456240e287 100644
(file)
--- 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