• Lele Gaifax's avatar
    Add new keywords of Python 3.5 · fa7886a4
    Lele Gaifax authored
    Python 3.5, released in mid September 2015, introduced a few new
    keywords to better support asynchronous code, "async" and "await"
    in particular. See https://www.python.org/dev/peps/pep-0492/ for
    details. (Bug#21783)
    * lisp/progmodes/python.el (python-rx-constituents): Add async
    def/for/with as block-start and async def as defun.
    * lisp/progmodes/python.el (python-font-lock-keywords): Add async
    def/for/with as keyword.
    * test/automated/python-tests.el (python-indent-after-async-block-1,
    python-indent-after-async-block-2, python-indent-after-async-block-3,
    python-nav-beginning-of-defun-3): New tests to test indentation and
    navigation for the async keyword.
    fa7886a4
python.el 207 KB