Subject: bug#45341: [PATCH] Make python-mode fontify more assignment statements

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 21 Dec 2020 05:43:22 +0100

"Basil L. Contovounesios" <[email-masked]> 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