Public bug reported:

Hi,

This bug probably classifies as a polish bug, but I've stumbled upon
some LaTeX code that causes incorrect syntax highlighting.

1) $ lsb_release -rd
Description:    Ubuntu 12.04.2 LTS
Release:        12.04

2) $ apt-cache policy kile
kile:
  Installed: 1:2.1.0-1ubuntu2.1
  Candidate: 1:2.1.0-1ubuntu2.1
  Version table:
 *** 1:2.1.0-1ubuntu2.1 0
        500 http://mirror.csclub.uwaterloo.ca/ubuntu/ precise-updates/universe 
amd64 Packages
        100 /var/lib/dpkg/status
     1:2.1.0-1ubuntu2 0
        500 http://mirror.csclub.uwaterloo.ca/ubuntu/ precise/universe amd64 
Packages


The following code, when pasted into the Kile editor, highlights the second 
"cases" wrong:

\begin{align}
 U_{bg}(z) = \begin{cases}
              U_{max} e^{-(b(z-z_0))^4} &\mbox {if } z \leq z_0,\\
              U_{max}                   &\mbox {if } z   >  z_0,\\
             \end{cases}
\end{align}

3) Expectation is that the colour of the second 'cases' matches the first (blue)
4) Actual result is that it got highlighted in green rather than blue


Misc:
- The LaTeX code is correct, it compiles without warnings or errors. 
- See the attached screenshot for a visualisation

** Affects: kile (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: highlight syntax

** Attachment added: "Screenshot of the code"
   https://bugs.launchpad.net/bugs/1206957/+attachment/3756058/+files/screen.png

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kile in Ubuntu.
https://bugs.launchpad.net/bugs/1206957

Title:
  syntax highlighter incorrect in nested latex environment

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kile/+bug/1206957/+subscriptions

-- 
kubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to