Bug 323382 - syntax highliting messed up when section content starts with "{"
Summary: syntax highliting messed up when section content starts with "{"
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: editor (other bugs)
Version First Reported In: 2.9.93
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 16:11 UTC by Dave Lepore
Modified: 2023-09-17 22:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Lepore 2013-08-11 16:11:33 UTC
Create a new file and type the following:

\section{title}
{type anything here

the section content will be highlighted as if it was the section title. So for example in the "printing" color scheme shipper with Kile, the section content will be green (insted of black) like the section title.

Reproducible: Always

Steps to Reproduce:
see previous description
Comment 1 merlin 2013-11-13 20:12:33 UTC
I have sent a patch for this to the maintainer of Kile (Michel Ludwig) to commit it.
Comment 2 Dave Lepore 2013-11-16 00:36:09 UTC
just wanted to say thank you for working on this. I'll test the patch as soon as it lands in git.
Comment 3 Andrew Crouthamel 2018-11-11 04:23:04 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-21 04:48:35 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Guillaume Lang 2020-08-13 23:23:16 UTC
Bug still present in 2.9.93.

MWE with variations:
"""""""
\documentclass{article}
\begin{document}

\section{Wrong}
{\small BOLD HIGHLIGHTING}

\section{Wrong}
%
{\small BOLD HIGHLIGHTING}

\section{Wrong}%
{\small BOLD HIGHLIGHTING}

\section{OK}
\textit{NOT BOLD}
{\small NOT BOLD}

\section{OK}
NOT BOLD
{\small NOT BOLD}

\end{document}
"""

Reproducible: Always

Steps to Reproduce:
code similar to the above
Comment 6 Christoph Cullmann 2023-09-17 22:11:03 UTC
Git commit 7698b90b78d66e9fa5514b118f269f31b73a47ff by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 18/09/2023 at 00:08.
Pushed by cullmann into branch 'master'.

LaTeX: fix highliting when section content starts with {

M  +10   -0    autotests/folding/highlight.tex.fold
M  +10   -0    autotests/html/highlight.tex.dark.html
M  +10   -0    autotests/html/highlight.tex.html
M  +10   -0    autotests/input/highlight.tex
M  +10   -0    autotests/reference/highlight.tex.ref
M  +1    -2    data/syntax/latex.xml

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/7698b90b78d66e9fa5514b118f269f31b73a47ff