area / language-latex

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

highlighting stops working in long lines #179

Closed rammmiro closed 6 years ago

rammmiro commented 6 years ago

Description

Syntax highlighting stops working in long lines.

Steps to reproduce & Minimum working example

An example .tex file is:

\documentclass{article}
\begin{document}
    Here \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e}, \emph{e} and \emph{e}.
\end{document}

Expected behaviour

I think this is a correct example and everything should be normal.

Actual behaviour

Syntax highlighting is broken.

example broken syntax highlighting

After this point nothing works as expected, and I think this might be a bug.

Aerijo commented 6 years ago

Duplicate of #139.

Please reopen if this is not the case.

rammmiro commented 6 years ago

Thank you, it was the exact same issue. I checked open issues but not closed ones. Sorry for the inconvenience.

Aerijo commented 6 years ago

Well that one was open. But I've changed the title to something more understandable.