aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/python-tests.el
diff options
context:
space:
mode:
authorkobarity2022-05-21 15:23:21 +0200
committerLars Ingebrigtsen2022-05-21 15:23:21 +0200
commita8acb9516e75b9b13ee988b6cbc2e6bbe1aa531c (patch)
tree49b603528a77d9971cd00e999713bf2468406c0e /test/lisp/progmodes/python-tests.el
parent22ae842b346621095223213621f2244a5a59d3b8 (diff)
downloademacs-a8acb9516e75b9b13ee988b6cbc2e6bbe1aa531c.tar.gz
emacs-a8acb9516e75b9b13ee988b6cbc2e6bbe1aa531c.zip
Fix recently introduced Python font lock breakage of chained assignments
* lisp/progmodes/python.el (python-font-lock-assignment-matcher): Fix fontification of chained assignments (bug#54992).
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
-rw-r--r--test/lisp/progmodes/python-tests.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el
index 98b55a5f8bc..ee7b66610aa 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -343,6 +343,13 @@ aliqua."
343 343
344(ert-deftest python-font-lock-assignment-statement-17 () 344(ert-deftest python-font-lock-assignment-statement-17 ()
345 (python-tests-assert-faces 345 (python-tests-assert-faces
346 "(a) = (b) = 1"
347 `((1)
348 (2 . font-lock-variable-name-face) (3)
349 (8 . font-lock-variable-name-face) (9))))
350
351(ert-deftest python-font-lock-assignment-statement-18 ()
352 (python-tests-assert-faces
346 "CustomInt = int 353 "CustomInt = int
347 354
348def f(x: CustomInt) -> CustomInt: 355def f(x: CustomInt) -> CustomInt: