vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

Latex Sytanx Highlighting #32

Closed wuzzeb closed 13 years ago

wuzzeb commented 13 years ago

latex syntax highlighting in a pandoc file does not work if the $ starts on the first column. If you add a space before the $ then the highlighting is picked up.

I fixed this by adding pandocLatex to the contains entry on syn match pandocPara, so that $\mathcal{F}$ is highlighted correctly if it appears inside a paragraph.