summaryrefslogtreecommitdiff
path: root/lisp/ls-lisp.el
diff options
context:
space:
mode:
authorkobarity <kobarity@gmail.com>2022-08-17 13:10:16 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-08-17 13:10:16 +0200
commit4915ca5dd4245a909c046e6691e8d4a1919890c8 (patch)
treea48242b42ff526acd35579ff0596e0add4887949 /lisp/ls-lisp.el
parent31e32212670f5774a6dbc0debac8854fa01d8f92 (diff)
downloademacs-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/ls-lisp.el')
0 files changed, 0 insertions, 0 deletions