]> git.eshelyaron.com Git - emacs.git/commit
Fix python escape code fontification for multi-line literals
authorLaurence Warne <laurencewarne@gmail.com>
Tue, 9 Aug 2022 07:33:18 +0000 (08:33 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 9 Aug 2022 17:21:36 +0000 (19:21 +0200)
commitb92e88875802724af9e08201ea65a96dd5f20ff1
tree9a0136781ddab7618c4752d60c1c84830a07d95a
parent3ef18c7a213f4f3c03eec033fcb8219fb17cd53d
Fix python escape code fontification for multi-line literals

* lisp/progmodes/python.el (python--string-bytes-literal-matcher): Go
backward one char after a match so that consecutive escape codes are
highlighted
(python--not-raw-string-literal-start-regexp): Make regular expression
more comprehensive, so multi-line bytes literals are not caught
(python-rx): Accept one to three octal digits in octal escape codes
instead of always three
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el