bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant


From: Theodor Thornhill
Subject: bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 07 Dec 2022 13:56:04 +0100

Hi!

Brian Leung <leungbk@posteo.net> writes:
> 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 @@ c-ts-mode--font-lock-settings
>       (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

Thanks!  Yuan, Will you apply this change?

Theo





reply via email to

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