
April 5, 2012
2:32 p.m.
Amaury Forgeot d'Arc <amauryfa@gmail.com> added the comment: Not exactly. Sphinx first tries to see if the block is a Python script, and to do so it uses the Python compiler: https://bitbucket.org/birkenfeld/sphinx/src/164f59b2d946/sphinx/highlighting... In case of SyntaxError, it treats the whole block as plain text and does not try to use pygmentq at all. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14503> _______________________________________