]> git.eshelyaron.com Git - emacs.git/commit
Fontify python escape sequences in literals
authorlWarne <laurencewarne@gmail.com>
Sat, 6 Aug 2022 13:01:38 +0000 (15:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 6 Aug 2022 13:01:38 +0000 (15:01 +0200)
commitd8abff398bc45a791783c5c463838ba6fa3f030e
treeb9d1fea79c715cc881a83a2201343f50194d78ce
parent83496888aaed10de35b3cbce695600300a30af84
Fontify python escape sequences in literals

* lisp/progmodes/python.el (python-rx): Add regular expressions
matching escape codes in string and byte literals
(python--string-bytes-literal-matcher): new function
(python--not-raw-bytes-literal-start-regexp): new constant
(python--not-raw-string-literal-start-regexp): new constant
* test/lisp/progmodes/python-tests.el: Add tests for new
fontification (bug#57004).
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el