diff options
author | kobarity <kobarity@gmail.com> | 2022-08-17 13:10:16 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-08-17 13:10:16 +0200 |
commit | 4915ca5dd4245a909c046e6691e8d4a1919890c8 (patch) | |
tree | a48242b42ff526acd35579ff0596e0add4887949 /lisp/find-lisp.el | |
parent | 31e32212670f5774a6dbc0debac8854fa01d8f92 (diff) | |
download | emacs-4915ca5dd4245a909c046e6691e8d4a1919890c8.tar.gz emacs-4915ca5dd4245a909c046e6691e8d4a1919890c8.tar.bz2 emacs-4915ca5dd4245a909c046e6691e8d4a1919890c8.zip |
Enhance Python font-lock to support multilines
* test/lisp/progmodes/python-tests.el
(python-tests-assert-faces-after-change): New helper function.
(python-font-lock-keywords-level-1-3)
(python-font-lock-assignment-statement-multiline-*): New tests.
* lisp/progmodes/python.el (python-rx): Add `sp-nl' to represent
space or newline (with/without backslash).
(python-font-lock-keywords-level-1)
(python-font-lock-keywords-maximum-decoration): Allow newlines
where appropriate.
(python-font-lock-extend-region): New function.
(python-mode): Set `python-font-lock-extend-region' to
`font-lock-extend-after-change-region-function'.
Diffstat (limited to 'lisp/find-lisp.el')
0 files changed, 0 insertions, 0 deletions