]> git.eshelyaron.com Git - emacs.git/commit
Make syntax-ppss more accurate for Python triple quotes (bug#49518)
authorJoão Távora <joaotavora@gmail.com>
Sun, 19 Sep 2021 10:42:20 +0000 (11:42 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 19 Sep 2021 16:18:17 +0000 (17:18 +0100)
commit44870df239ba681e826795fc54d69e8d9a517826
tree730b6b3def483172461b78c1f0ded4a3362675d7
parent989c921fcbf3172ace2bf57c880c132a92834217
Make syntax-ppss more accurate for Python triple quotes (bug#49518)

By putting delimiter syntax on the "inside" of Python triple-quoted
strings, this makes syntax-ppss be more accurate and thus helps things
like electric-pair-mode.  Also, the test
python-syntax-after-python-backspace now passes, again.

* lisp/progmodes/python.el (python-syntax-stringify): Put
delimiter syntax in "inner" of the surrouding triple quotes.

* test/lisp/progmodes/python-tests.el
(python-syntax-after-python-backspace): Passes again.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el