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: Yuan Fu
Subject: bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant
Date: Wed, 7 Dec 2022 11:24:38 -0800

Theodor Thornhill <theo@thornhill.no> writes:

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

Applied, thanks!

Yuan





reply via email to

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