Le 07/02/2013 11:53, Kornel Benko a écrit :
This is one minimal example which breaks tex2lyx:\documentclass{article} \usepackage{listings} \begin{document} Inline: \lstinline!int a=5;!\\ \end{document}
Thanks for the example file. This is indeed a known corner case, that can be solved by "deparsing" the text after cursor: when looking up a token, the next one is already parsed with current catcodes. This has to be redone when changing catcodes.
This is something I want to eventually do. JMarc