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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59878 in the body.
You can then email your comments to 59878 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59878; Package emacs. (Wed, 07 Dec 2022 10:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Leung <leungbk <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 07 Dec 2022 10:18:02 GMT) Full text and rfc822 format available.

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

From: Brian Leung <leungbk <at> posteo.net>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 07 Dec 2022 10:16:18 +0000
[Message part 1 (text/plain, inline)]
Tags: patch





In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.16.0, Xaw3d scroll bars)
Repository revision: 80df980e4100297942775eae4f89c5ccabe03afc
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12014000
System Description: NixOS 23.05 (Stoat)

Configured using:
 'configure
 --prefix=/nix/store/yc2vgl7zmby1dawpra4x92cfxlrvhrx1-emacs-git-20221206.0
 --disable-build-details --with-modules --with-x-toolkit=lucid
 --with-xft --with-cairo --with-native-compilation'

[0001-c-ts-mode-Highlight-nullptr-as-a-constant.patch (text/patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59878; Package emacs. (Wed, 07 Dec 2022 12:57:02 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59878; Package emacs. (Wed, 07 Dec 2022 19:25:02 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Theodor Thornhill <theo <at> thornhill.no>
Cc: leungbk <at> posteo.net, 59878 <at> debbugs.gnu.org
Subject: Re: bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 7 Dec 2022 11:24:38 -0800
Theodor Thornhill <theo <at> thornhill.no> writes:

> 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?

Applied, thanks!

Yuan




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Thu, 08 Dec 2022 00:20:02 GMT) Full text and rfc822 format available.

Notification sent to Brian Leung <leungbk <at> posteo.net>:
bug acknowledged by developer. (Thu, 08 Dec 2022 00:20:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Yuan Fu <casouri <at> gmail.com>, Theodor Thornhill <theo <at> thornhill.no>
Cc: leungbk <at> posteo.net, 59878-done <at> debbugs.gnu.org
Subject: Re: bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 7 Dec 2022 16:19:39 -0800
Yuan Fu <casouri <at> gmail.com> writes:

> Applied, thanks!

I'm therefore also closing this bug.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59878; Package emacs. (Thu, 08 Dec 2022 00:44:02 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: leungbk <at> posteo.net, 59878-done <at> debbugs.gnu.org,
 Theodor Thornhill <theo <at> thornhill.no>
Subject: Re: bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 7 Dec 2022 16:43:29 -0800

> On Dec 7, 2022, at 4:19 PM, Stefan Kangas <stefankangas <at> gmail.com> wrote:
> 
> Yuan Fu <casouri <at> gmail.com> writes:
> 
>> Applied, thanks!
> 
> I'm therefore also closing this bug.

Ah I forgot to close this, thank you, as always.

Yuan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Jan 2023 12:24:08 GMT) Full text and rfc822 format available.

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.