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#67440: [PATCH] python: Add "is not" as an entry in python--treesit-keywords Date: Sat, 25 Nov 2023 07:24:15 +0000 Message-ID: <87a5r2i9cw.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="22736"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu To: 67440@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 25 08:25:24 2023 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 1r6n2a-0005hx-0i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Nov 2023 08:25:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6n2D-00013b-10; Sat, 25 Nov 2023 02:25:01 -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 1r6n29-00013S-Jp for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:24:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r6n29-0001T7-BD for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:24:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6n2D-00068S-QT for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:25: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: Sat, 25 Nov 2023 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67440 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.170089708523558 (code B ref -1); Sat, 25 Nov 2023 07:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2023 07:24:45 +0000 Original-Received: from localhost ([127.0.0.1]:37681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6n1x-00067u-BR for submit@debbugs.gnu.org; Sat, 25 Nov 2023 02:24:45 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:40524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6n1r-00067Z-H0 for submit@debbugs.gnu.org; Sat, 25 Nov 2023 02:24:43 -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 1r6n1e-00010i-VZ for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:24:28 -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 1r6n1c-0001Lx-Kt for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:24:26 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A8CF9240027 for ; Sat, 25 Nov 2023 08:24:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1700897059; bh=+LKc1YZGZv72HwEnuehKuaepoyZHT6s+ms912SZXEm4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=PjW+7vnxMRSFJRyM7Rj3+uM48K+DcDpvNpKfKbmbKmV0erHOWbDMoXepPm2i49EZR Z/dXJjtYthZ+P0cpOW/soxsw+U/p6BG+lNMqgjVXWnCe73XKvEk1KCqO4CQcfRaoFf D52/fg2/gV+wa5KJlxIOJ3L3n3GeEzei8JREAOr/ZVN/RpUF7wP8lmNMuZnX7/lqbj eutejBuRuV3oKHwpyB3XI2L0ntI1EYyzfjx5dSAdd2yvtcnLe33DM1UBk05pz+jMO9 UBtUdZFpjBn+eBj+YHnPANOqcUCgXctq1w3hdh2EhEuSQemKyfBvB33dsys9+0zhR+ un/clmx0GNkWA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Scjyp530Mz6tw9; Sat, 25 Nov 2023 08:24:18 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=leungbk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:274915 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Prior to this patch, "is not" is not highlighted in python-ts-mode. This patch targets the emacs-29 branch. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) Repository revision: 354a2958f9ae547529b8f35cbd8659a0136d0d56 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101009 System Description: NixOS 24.05 (Uakari) Configured using: 'configure --prefix=/nix/store/8y2rr52vqnv9wdjjcahqpxasy4raqkxx-emacs-git-20231124.0 --disable-build-details --with-modules --with-x-toolkit=lucid --with-xft --with-cairo --with-native-compilation --with-tree-sitter' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-python-Add-is-not-as-an-entry-in-python-treesit-keyw.patch >From 6757ddd11a6d451ff2eb0c2cc1bb6ddb907eac30 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Fri, 24 Nov 2023 23:20:40 -0800 Subject: [PATCH] python: Add "is not" as an entry in python--treesit-keywords * lisp/progmodes/python.el (python--treesit-keywords): Add the operator "is not". --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a7944576196..0d47135bc5f 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -969,7 +969,7 @@ python--treesit-keywords "raise" "return" "try" "while" "with" "yield" ;; These are technically operators, but we fontify them as ;; keywords. - "and" "in" "is" "not" "or" "not in")) + "and" "in" "is" "not" "or" "not in" "is not")) (defvar python--treesit-builtins '("abs" "all" "any" "ascii" "bin" "bool" "breakpoint" "bytearray" -- 2.42.0 --=-=-=--