Utilisation de l'option escapeinside avec le lexer pycon

Aug 21 2020

Que se passe t-il ici?

\documentclass{article}
\usepackage{minted}

\begin{document}

% I want to show the output as latex, this is a minimal repro without any output at all
\begin{minted}[escapeinside=QQ,python3=true]{pycon}
>>> g = str('e_x e_y e_z')
\end{minted}

% works fine otherwise
\begin{minted}[python3=true]{pycon}
>>> g = str('e_x e_y e_z')
\end{minted}

\end{document}

donne

Pourquoi a-t-il g = str(été supprimé ?

Réponses

1 Eric Aug 20 2020 at 23:19

C'est un pygmentsbogue, et hors du contrôle de minted:https://github.com/pygments/pygments/issues/1516.

Edit : PR pour résoudre ce problème ici :https://github.com/pygments/pygments/pull/1517