Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 321 by [email protected]: syntax/tex.vim does not track braces
inside \ensuremath{} blocks
https://code.google.com/p/vim/issues/detail?id=321
What steps will reproduce the problem?
1. open vim
2. type ":setf tex"
3. type
\ensuremath{
\frac{r_b}{r_a}
}
What is the expected output?
The entire block should have math highlighting.
What do you see instead?
The math highlighting stops after the first }.
What version of the product are you using? On what operating system?
vim 7.4.580, archlinux
Please provide any additional information below.
Clearly the problem is that syntax/tex.vim line 469, which reads
syn region texMathZoneZ matchgroup=texStatement start="\\ensuremath\s*{"
matchgroup=texStatement end="}" end="%stopzone\>" contains=@texMathZoneGroup
does not track all of the braces inside the \ensuremath{} block, so the
block ends at the first close brace it sees. I don't know how to fix it,
though.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.