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> _______________________________________