[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45341: [PATCH] Make python-mode fontify more assignment statements
From: |
Lars Ingebrigtsen |
Subject: |
bug#45341: [PATCH] Make python-mode fontify more assignment statements |
Date: |
Mon, 21 Dec 2020 05:43:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"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