[docs] [issue13801] The Python 3 Docs don't highlight nonlocal

Berker Peksag report at bugs.python.org
Sun Aug 26 10:12:55 CEST 2012


Berker Peksag added the comment:

> 'nonlocal' is not highlighted because in the pygments version that we are using 'nonlocal' is missing in Python3Lexer.tokens['keywords'] see (Doc/tools/pygments/lexers/agile.py:196).

The nonlocal keyword has been added in Pygments 1.5.

https://bitbucket.org/birkenfeld/pygments-main/src/972a251fa742/pygments/lexers/agile.py#cl-202

----------
nosy: +berker.peksag

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


More information about the docs mailing list