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


View this message in rfc822 format

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




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.