all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noah Peart <noah.v.peart@gmail.com>
To: 70666@debbugs.gnu.org
Subject: bug#70666: [PATCH] Add bitwise assignment operators to python--treesit-operators.
Date: Tue, 30 Apr 2024 03:35:34 -0700	[thread overview]
Message-ID: <CAPVBTSdCUTNky_SWMnCcyrV0C-nUBz2=Bhtx1jc5Eb+SU9mrDQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 743 bytes --]

Tags: patch


Adds missing bitwise assignment operators to python--treesit-operators:
[">>=" "<<=" "^=" "|=" "&="].


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.33, cairo version 1.16.0) of 2024-04-29 built on noah-X580VD
Repository revision: 3000edc6179dfe0b5f24ae2e472826530809dfd1 Repository
branch: master Windowing system distributor 'The X.Org Foundation',
version 11.0.12101004 System Description: Ubuntu 22.04.4 LTS

Configured using:
 'configure --prefix=/usr/local --with-modules --with-tree-sitter
--with-threads --with-x-toolkit=gtk3 --with-xwidgets --with-gnutls
--with-json --with-mailutils --with-jpeg --with-png --with-rsvg
--with-tiff --with-xml2 --with-xpm --with-imagemagick CC=gcc-12
CXX=gcc-12'

[-- Attachment #1.2: Type: text/html, Size: 906 bytes --]

[-- Attachment #2: 0001-Add-bitwise-assignment-operators-to-python-treesit-o.patch --]
[-- Type: text/x-patch, Size: 1182 bytes --]

From 743d4932492ea7cf31b8303d1d46fbc158be5656 Mon Sep 17 00:00:00 2001
From: Noah Peart <noah.v.peart@gmail.com>
Date: Tue, 30 Apr 2024 03:19:11 -0700
Subject: [PATCH] Add bitwise assignment operators to
 python--treesit-operators.

* lisp/progmodes/python.el (python--treesit-operators): Add
bitwise assignment operators.
---
 lisp/progmodes/python.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d6c29e5ffc6..fb76d0718ba 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1018,9 +1018,9 @@ python--treesit-constants
     "copyright" "credits" "exit" "license" "quit"))
 
 (defvar python--treesit-operators
-  '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%="
-    "^" "+" "->" "+=" "<" "<<" "<=" "<>" "=" ":=" "==" ">" ">=" ">>" "|"
-    "~" "@" "@="))
+  '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "&=" "%" "%="
+    "^" "^=" "+" "->" "+=" "<" "<<" "<<=" "<=" "<>" "=" ":=" "==" ">" ">="
+    ">>" ">>=" "|" "|=" "~" "@" "@="))
 
 (defvar python--treesit-special-attributes
   '("__annotations__" "__closure__" "__code__"
-- 
2.34.1


             reply	other threads:[~2024-04-30 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 10:35 Noah Peart [this message]
2024-05-09  7:43 ` bug#70666: [PATCH] Add bitwise assignment operators to python--treesit-operators Eli Zaretskii
2024-06-06  5:36   ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPVBTSdCUTNky_SWMnCcyrV0C-nUBz2=Bhtx1jc5Eb+SU9mrDQ@mail.gmail.com' \
    --to=noah.v.peart@gmail.com \
    --cc=70666@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.