diff options
| author | Brian Leung | 2022-12-07 02:12:05 -0800 |
|---|---|---|
| committer | Yuan Fu | 2022-12-07 12:01:51 -0800 |
| commit | b710ca62c00ef90a46fc90a9ae06fdf3bba87bc2 (patch) | |
| tree | f792d8db3b3370dd2de37fe6895338db119138fd | |
| parent | d31a25398347f1646b0c37a27f82ac3771a7cc15 (diff) | |
| download | emacs-b710ca62c00ef90a46fc90a9ae06fdf3bba87bc2.tar.gz emacs-b710ca62c00ef90a46fc90a9ae06fdf3bba87bc2.zip | |
c++-ts-mode: Highlight nullptr as a constant
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add
nullptr.
| -rw-r--r-- | lisp/progmodes/c-ts-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
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'." | |||
| 233 | (false) @font-lock-constant-face | 233 | (false) @font-lock-constant-face |
| 234 | (null) @font-lock-constant-face | 234 | (null) @font-lock-constant-face |
| 235 | ,@(when (eq mode 'cpp) | 235 | ,@(when (eq mode 'cpp) |
| 236 | '((this) @font-lock-constant-face))) | 236 | '((this) @font-lock-constant-face |
| 237 | (nullptr) @font-lock-constant-face))) | ||
| 237 | 238 | ||
| 238 | :language mode | 239 | :language mode |
| 239 | :feature 'keyword | 240 | :feature 'keyword |