]> git.eshelyaron.com Git - emacs.git/commit
python.el: Enhance docstring detection following PEP-257.
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 6 Apr 2015 02:58:13 +0000 (23:58 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 6 Apr 2015 02:58:13 +0000 (23:58 -0300)
commitdeea36f0ece7b1b14afe2a833b6a0f66d59f4459
treee3e41e0a5a03b0ea83b293c0c65835be038d56d4
parent7514b24b6a512d85b762c603e9e0107d2c8a52f1
python.el: Enhance docstring detection following PEP-257.

* lisp/progmodes/python.el (python-docstring-at-p): Remove function.
(python-info-assignment-statement-p): New function.
(python-info-assignment-continuation-line-p): Use it.
(python-info-docstring-p): New function.
(python-font-lock-syntactic-face-function)
(python-fill-string): Use it.

* test/automated/python-tests.el (python-info-assignment-statement-p-1)
(python-info-assignment-statement-p-2)
(python-info-assignment-statement-p-3, python-info-docstring-p-1)
(python-info-docstring-p-2, python-info-docstring-p-3)
(python-info-docstring-p-4, python-info-docstring-p-5)
(python-info-docstring-p-6): New tests.
lisp/ChangeLog
lisp/progmodes/python.el
test/ChangeLog
test/automated/python-tests.el