[issue29706] IDLE needs syntax highlighting for async and await

Terry J. Reedy report at bugs.python.org
Fri Mar 3 15:20:36 EST 2017


Terry J. Reedy added the comment:

David, the easiest thing to do would be to copy and paste the following
 + ['async', 'await']
into this line of colorizer.py (ColorDelegator.py in 3.5)
    kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b"
about line 17, to get
    kw = r"\b" + any("KEYWORD", keyword.kwlist + ['async', 'await']) + r"\b"

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29706>
_______________________________________


More information about the Python-bugs-list mailing list