From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: Dario Gjorgjevski <dario.gjorgjevski@gmail.com>, 45341@debbugs.gnu.org
Subject: bug#45341: [PATCH] Make python-mode fontify more assignment statements
Date: Mon, 21 Dec 2020 05:43:22 +0100 [thread overview]
Message-ID: <87czz3hiqd.fsf@gnus.org> (raw)
In-Reply-To: <87sg80gxpw.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 20 Dec 2020 18:04:59 +0000")
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
>> + (let ((res (re-search-forward regexp limit t)))
>> + (unless (or (python-syntax-context 'paren)
>> + (equal (char-after (point)) ?=))
>
> Nit: char-after already defaults to looking at point, but you could also
> use following-char which always returns a natnum.
The old code also used this idiom, so I didn't rewrite it before
applying. python.el mostly uses (eq (char-after) ?x) throughout its
code, though.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-12-21 4:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-20 16:25 bug#45341: [PATCH] Make python-mode fontify more assignment statements Dario Gjorgjevski
2020-12-20 18:04 ` Basil L. Contovounesios
2020-12-21 4:43 ` Lars Ingebrigtsen [this message]
2020-12-21 4:41 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czz3hiqd.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=45341@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=dario.gjorgjevski@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).