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

Previous Next

Package: emacs;

Reported by: Brian Leung <leungbk <at> posteo.net>

Date: Wed, 7 Dec 2022 10:18:01 UTC

Severity: normal

Tags: patch

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 59878 <at> debbugs.gnu.org (full text, mbox):

From: Theodor Thornhill <theo <at> thornhill.no>
To: Brian Leung <leungbk <at> posteo.net>
Cc: 59878 <at> debbugs.gnu.org
Subject: Re: bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 07 Dec 2022 13:56:04 +0100
Hi!

Brian Leung <leungbk <at> 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




This bug report was last modified 2 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.