]> git.eshelyaron.com Git - emacs.git/commitdiff
Partially fix some python tests (bug#59477)
authorYuan Fu <casouri@gmail.com>
Sat, 26 Nov 2022 22:08:11 +0000 (14:08 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 26 Nov 2022 23:40:24 +0000 (15:40 -0800)
This fixes

python-font-lock-assignment-statement-multiline-1
python-font-lock-assignment-statement-multiline-2
python-font-lock-assignment-statement-multiline-3
python-font-lock-assignment-statement-multiline-4
python-font-lock-assignment-statement-multiline-5
python-font-lock-assignment-statement-multiline-6

but leaves

python-tests--fill-long-first-line

unfixed.

* lisp/progmodes/python.el (python-mode): Add the missing setup.

lisp/progmodes/python.el

index 2a7e8a4081db20a7e761da1279518d92893a7bfd..9bbcac612fd5e15bdce56d5619981d66e19d5f3b 100644 (file)
@@ -6598,7 +6598,9 @@ implementations: `python-mode' and `python-ts-mode'."
               `(,python-font-lock-keywords
                 nil nil nil nil
                 (font-lock-syntactic-face-function
-                 . python-font-lock-syntactic-face-function)))
+                 . python-font-lock-syntactic-face-function)
+                (font-lock-extend-after-change-region-function
+                 . python-font-lock-extend-region)))
   (setq-local syntax-propertize-function
               python-syntax-propertize-function)
   (setq-local imenu-create-index-function