When placing "\lstinline[]{my code dasd } saddasddasd" somewhere it highlights code from the first ] until a line break including text after the } char. Reproducible: Always
Nikos, since you also sent a patch with respect to lstinline in bug #234846, can you comment on this here and maybe also send a patch?
Michael, can you maybe have a look?
Hi, See attached patch to fix this strange highlighting issue. Details: Broke out lstinline into it's own case because it takes optional parameters, and thus can't be lumped in with \verb All of the usage cases work for me below Text, code: \lstinline@int i=4;@ and back to normal text. \\ Text, code: \lstinline{int i=8;} and back to normal text. \\ Text, code: \lstinline[]^int i=4;^ and back to normal text. \\ Text, code: \lstinline[columns=fixed]{int i=4;} and back to normal text. \\ Text, code: \lstinline[columns=fixed]!int i=4;! and back to normal text. \\
Created attachment 81647 [details] Patch to fix lstinline highlighting
Git commit d78263ceef0e5dc4b6d7d169f54669812e37850c by Dominik Haumann. Committed on 12/08/2013 at 07:53. Pushed by dhaumann into branch 'master'. fix LaTeX highlighting error for \lstinline[]{...} Thanks to Michael for the patch! FIXED-IN: 4.11.1 M +18 -2 part/syntax/data/latex.xml http://commits.kde.org/kate/d78263ceef0e5dc4b6d7d169f54669812e37850c
Git commit 63e939b3dff41e4673e157f51caa0cf3e67da50b by Dominik Haumann. Committed on 12/08/2013 at 07:53. Pushed by dhaumann into branch 'KDE/4.11'. fix LaTeX highlighting error for \lstinline[]{...} Thanks to Michael for the patch! FIXED-IN: 4.11.1 M +18 -2 part/syntax/data/latex.xml http://commits.kde.org/kate/63e939b3dff41e4673e157f51caa0cf3e67da50b