Closed GoogleCodeExporter closed 9 years ago
I just found a way to fix this problem! After some vimming, I found replacing
line 469 with the following lines sufficient to fix this problem!
syn region texMathZoneZext start="{" end="}" transparent contained
syn region texMathZoneZ matchgroup=texStatement start="\\ensuremath\s*{" matchgroup=texStatement end="}" end="%stopzone\>" contains=@texMathZoneGroup,texMathZoneZext
Original comment by ewtoo...@gmail.com
on 22 Jan 2015 at 7:14
Please try syntax/tex.vim v84 from my website:
http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
Original comment by drc...@campbellfamily.biz
on 22 Jan 2015 at 9:36
Thanks, Dr. Chip. Your update does indeed fix the brace tracking issue, but it
also changes highlighting elsewhere. Underscores have changed colour from
orange to magenta. I don't know if this was intentional or not. On the other
hand, though, it did fix a different error I hadn't even seen until now. In the
old version, the following
\begin{equation}
\frac{r_a}{r_b}
\end{equation}
displays a in orange and b in magenta. They're both magenta now.
Original comment by ewtoo...@gmail.com
on 23 Jan 2015 at 6:21
I just checked again, and v.84 isn't working. I'd forgotten to prevent loading
of my .vimrc last time using -u NONE. I'm getting the same error as I got when
I started now. The first closing brace terminates the \ensuremath{} expression.
Original comment by ewtoo...@gmail.com
on 13 Apr 2015 at 5:23
Please try v85 of syntax/tex.vim from my website:
http://www.drchip.org/astronaut/vim/index.html#SYTNAX_TEX
Original comment by drc...@campbellfamily.biz
on 15 Apr 2015 at 2:49
Original issue reported on code.google.com by
ewtoo...@gmail.com
on 22 Jan 2015 at 5:39