Bug 322144 - Bad parsing of environments nested in math environment
Summary: Bad parsing of environments nested in math environment
Status: RESOLVED DUPLICATE of bug 410477
Alias: None
Product: kile
Classification: Applications
Component: editor (other bugs)
Version First Reported In: 2.9.60
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL: http://i.imgur.com/jNwhBcX.png?1
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-09 08:53 UTC by loic.grobol
Modified: 2019-08-07 07:55 UTC (History)
4 users (show)

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


Attachments
issue demo (13.66 KB, image/png)
2018-11-21 10:35 UTC, loic.grobol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description loic.grobol 2013-07-09 08:53:12 UTC
LaTeX environments nested in a math environment (such as equation) are incorrectly parsed, that is, the \begin{} is correctly parse, but the \end{} only up to the first accolade : highlighting then fails and the closing accolade is not detected.
Testcase : 
       \begin{equation}
		\begin{dcases}
			θ₀(x) = 
				\begin{dcases}
					+1 & x<c
					-1 & x>c
				\end{dcases}\\
			θ_{n+1}(x) = θ_n(x)θ₀(x)
		\end{dcases}
	\end{equation}

Reproducible: Always
Comment 1 houstontyoung 2013-11-02 17:03:49 UTC
I uploaded an updated file latex.xml and I think the update fixes this; see bug 274440.
Comment 2 merlin 2013-11-13 20:04:58 UTC
I have adapted a patch to current version 1.55 of latex.xml and sent it to the maintainer of Kile (Michel Ludwig) to commit it.
Comment 3 Andrew Crouthamel 2018-11-11 04:32:22 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:39 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 loic.grobol 2018-11-21 10:35:08 UTC
Created attachment 116439 [details]
issue demo
Comment 6 loic.grobol 2018-11-21 10:35:33 UTC
Yes, valid
Comment 7 Andrew Crouthamel 2018-11-21 19:03:48 UTC
Thanks for the update!
Comment 8 Nibaldo G. 2019-08-07 07:55:03 UTC

*** This bug has been marked as a duplicate of bug 410477 ***