all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#67440: [PATCH] python: Add "is not" as an entry in python--treesit-keywords
@ 2023-11-25  7:24 Brian Leung
       [not found] ` <handler.67440.B.170089708523558.ack@debbugs.gnu.org>
  2023-11-25 11:06 ` bug#67440: [PATCH] python: Add "is not" as an entry in python--treesit-keywords Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Brian Leung @ 2023-11-25  7:24 UTC (permalink / raw)
  To: 67440; +Cc: Yuan Fu

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

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'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-python-Add-is-not-as-an-entry-in-python-treesit-keyw.patch --]
[-- Type: text/patch, Size: 949 bytes --]

From 6757ddd11a6d451ff2eb0c2cc1bb6ddb907eac30 Mon Sep 17 00:00:00 2001
From: Brian Leung <leungbk@posteo.net>
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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#67440: Acknowledgement ([PATCH] python: Add "is not" as an entry in python--treesit-keywords)
       [not found] ` <handler.67440.B.170089708523558.ack@debbugs.gnu.org>
@ 2023-11-25  9:30   ` Brian Leung
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Leung @ 2023-11-25  9:30 UTC (permalink / raw)
  To: 67440-done; +Cc: Yuan Fu

Never mind, someone previously submitted a more comprehensive 
patch that Yuan hasn't yet reviewed.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#67440: [PATCH] python: Add "is not" as an entry in python--treesit-keywords
  2023-11-25  7:24 bug#67440: [PATCH] python: Add "is not" as an entry in python--treesit-keywords Brian Leung
       [not found] ` <handler.67440.B.170089708523558.ack@debbugs.gnu.org>
@ 2023-11-25 11:06 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2023-11-25 11:06 UTC (permalink / raw)
  To: Brian Leung; +Cc: 67440, casouri

merge 67440 67061
thanks

> Cc: Yuan Fu <casouri@gmail.com>
> From: Brian Leung <leungbk@posteo.net>
> Date: Sat, 25 Nov 2023 07:24:15 +0000
> 
> Prior to this patch, "is not" is not highlighted in python-ts-mode.
> 
> This patch targets the emacs-29 branch.

Thanks, we already have a patch in the works that should fix this
issue (together with some others).  See bug#67061.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-25 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-25  7:24 bug#67440: [PATCH] python: Add "is not" as an entry in python--treesit-keywords Brian Leung
     [not found] ` <handler.67440.B.170089708523558.ack@debbugs.gnu.org>
2023-11-25  9:30   ` bug#67440: Acknowledgement ([PATCH] python: Add "is not" as an entry in python--treesit-keywords) Brian Leung
2023-11-25 11:06 ` bug#67440: [PATCH] python: Add "is not" as an entry in python--treesit-keywords Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.