]> git.eshelyaron.com Git - emacs.git/commitdiff
Add bitwise assignment operators to 'python--treesit-operators'
authorNoah Peart <noah.v.peart@gmail.com>
Tue, 30 Apr 2024 10:19:11 +0000 (03:19 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 10 May 2024 13:35:02 +0000 (15:35 +0200)
* lisp/progmodes/python.el (python--treesit-operators): Add
bitwise assignment operators.  (Bug#70666)

(cherry picked from commit 08799957f0bade04a8f65a06dac1606346ee8733)

lisp/progmodes/python.el

index 764ef03da8a34a1fb6e724f962bb7ebdf979462a..0bee98871e4179b666980101b7a8b7df6539f8c7 100644 (file)
@@ -1022,9 +1022,9 @@ It makes underscores and dots word constituent chars.")
     "copyright" "credits" "exit" "license" "quit"))
 
 (defvar python--treesit-operators
-  '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%="
-    "^" "+" "->" "+=" "<" "<<" "<=" "<>" "=" ":=" "==" ">" ">=" ">>" "|"
-    "~" "@" "@="))
+  '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "&=" "%" "%="
+    "^" "^=" "+" "->" "+=" "<" "<<" "<<=" "<=" "<>" "=" ":=" "==" ">" ">="
+    ">>" ">>=" "|" "|=" "~" "@" "@="))
 
 (defvar python--treesit-special-attributes
   '("__annotations__" "__closure__" "__code__"