ClosestStorm / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Broken color scheme after certain LaTeX equations and long paragraphs #399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MacVim version 7.3 (53)
Mac OS version 10.6.8

I am running into color scheme issues with LaTeX documents in MacVim in two 
scenarios:

- The first is when using brace commands, i.e., "\{" and "\}", sans double 
quotes, in equation subscripts, e.g., "$(\sum_{k \in \{l : \theta_l \in 
T_1\}}{\pi_{j,k}},\ldots,\sum_{k \in \{l : \theta_l \in T_r\}}{\pi_{j,k}})$", 
again without quotes, which correctly compiles with LaTeX.  In this instance, 
MacVim incorrectly parses that I am still in "equation mode" from that point 
until the end of the document; I have attached a screenshot of this issue, 
which is entitled "MacVIM-LaTeXeq-1.png".  Note, however, that putting a pair 
of superfluous braces, at least from a LaTeX perspective, around the "\{" and 
"\}", e.g., "$\sum_{k \in {\{l : \theta_l \in T_1\}}}{\pi_{j,k}}", fixes this 
problem, which is shown in the attached image "MacVIM-LaTeXeq-2.png".

- The second is when I have an incredibly long paragraph.  In this case, MacVIM 
refuses to apply the color scheme beyond the three thousandth character on the 
line, which is shown in image "MacVIM-LaTeXpa-1.png".

Original issue reported on code.google.com by isaac.sl...@gmail.com on 23 Jan 2012 at 3:26

Attachments:

GoogleCodeExporter commented 9 years ago
This is an issue with a syntax file, so please report it to the plugin author.  
You can find out who that is and get their email by typing

:view $VIMRUNTIME/syntax/tex.vim

Original comment by bjorn.winckler@gmail.com on 25 Jan 2012 at 8:34