area / language-latex

Syntax highlighting for LaTeX for Atom.
Other
78 stars 47 forks source link

Incorrect highlighting #11

Closed lrp closed 9 years ago

lrp commented 10 years ago

Below is a block of latex that highlights incorrectly in. Starting from $f_{\bfal}(t)$, everything is lime green. I thought the problem might be my tex'ing, so I checked in textmate2, where it highlights correctly. Here it is:

We denote the parameters\footnote{For gravitational waves this includes $\mathcal{M}, \eta,\alpha,\delta,\iota\ldots$} of a single event by the bold $\bfth$. In general we'll be discussing a collection of $N$ events, so the parameters of an individual event will have a subscript, $\bfth_n$, which the entire collection of events will be surrounded in curly braces and carry explicit upper and lower limits, e.g., $\bfthall$. Our central problem will be to determine the distribution of some particular member of $\bfth$, which we will call\footnote{This notation should be better!} $t$. The data\footnote{$h(t)$ timeseries for gravitational waves} used to determine $\bfth$ is denoted $\bfD$, and so $\bfDn$ and $\bfDall$ have the same meanings as their $\bfth$ counterparts. Finally, we will call the distribution we are ultimately interested in determining where $f{\bfal}(t)$, where $\bfal$ are the parameters of the distribution\footnote{E.g., mean and variance if the distribution is Gaussian.} and $t$, as before, is a parameter in $\bfth$.

cbeny commented 10 years ago

I have the same problem. It seems to happens when there are many color switches on a single line. A simple example is a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$a$b$

fhenneke commented 10 years ago

i've got the same problem. for now i can just use additional linebreaks, but that is somewhat unsatisfactory.

cedhuf commented 10 years ago

Don't seems to be a Language-latex issue, but more a current atom bug. When line is too long, colorization breaks at a certain limit, currently seems to be 100. Please, follow https://github.com/atom/atom/issues/1667 for more updates on this.

cedhuf commented 9 years ago

Duplicate of https://github.com/area/language-latex/issues/13.