>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