From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Leung Newsgroups: gmane.emacs.bugs Subject: bug#59878: [PATCH] c++-ts-mode: Highlight nullptr as a constant Date: Wed, 07 Dec 2022 10:16:18 +0000 Message-ID: <87k033plhp.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11714"; mail-complaints-to="usenet@ciao.gmane.io" To: 59878@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 07 11:18:36 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2rVa-0002py-KM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Dec 2022 11:18:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2rVI-0002FC-Ok; Wed, 07 Dec 2022 05:18:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2rV4-00029h-Dy for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 05:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2rV4-0006YH-43 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 05:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2rV3-00027E-V2 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 05:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Dec 2022 10:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59878 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16704082258120 (code B ref -1); Wed, 07 Dec 2022 10:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Dec 2022 10:17:05 +0000 Original-Received: from localhost ([127.0.0.1]:49252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2rU8-00026u-T1 for submit@debbugs.gnu.org; Wed, 07 Dec 2022 05:17:05 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2rU5-00026e-RL for submit@debbugs.gnu.org; Wed, 07 Dec 2022 05:17:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2rTl-0001n7-RD for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 05:16:42 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2rTj-0003ts-B2 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 05:16:40 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A54FD240026 for ; Wed, 7 Dec 2022 11:16:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670408181; bh=JgHBx8cQO8seFGiqWBvk0Dc+/geFKpdQOJLC4QzZj20=; h=From:To:Subject:Date:From; b=Vr/K0lHIEbgeSGIHwsXarU9Uk69zgmDuqiFkCluGy0IPKcBmofVfl01EtkVnXbtx4 XfbROy5TAaI9TVpA5xd3otIiHo0QBwujHk+Qjae8+94fHHVM8dcvkpGnwzRO8/juEm RWWI1uLPeFSPML/Lgq2wpOaFPCY2nsp5/sxthvGPOGJOUdt3TcTlRXzV6R8OYYLUZ/ 2sd/wwUf+EX6h7+EcBmElu+0M7ljL1svrweZC2Td/DyCWuQhgVAHSHWkkPQhtDoTe6 suU+l7idG5D7cfoqcrJ+s5NwrWcPC712BFwRhh/AvadyWg+0yPhxMqPQ8EUwPFuMfI bMld0GhkapoKA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NRtVD33YFz6trt for ; Wed, 7 Dec 2022 11:16:20 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=leungbk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250174 Archived-At: --=-=-= Content-Type: text/plain 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' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-c-ts-mode-Highlight-nullptr-as-a-constant.patch >From 6552afaede8ca29dde8eeb0a7b78dfa0e138cec8 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Wed, 7 Dec 2022 02:12:05 -0800 Subject: [PATCH] c++-ts-mode: Highlight nullptr as a constant * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add nullptr. --- lisp/progmodes/c-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.38.1 --=-=-=--