vim-pandoc / vim-pandoc-legacy

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

Underscore in math #65

Closed Answeror closed 11 years ago

Answeror commented 12 years ago

Underscores in successive inline math have prior highlighting effect.

For example: $x_p$ and $z_p$

Maybe line 41 of syntax/pandoc.vim should be:

syn match pandocPara /\(^\(=\|[-:#%>]\|\[.\{-}\]:\)\@!\(\S.*\)\n\)\(\(^[=-].*\n\)\|\(^[:].*\n\)\)\@!/ contains=pandocLatex,pandocEmphasis,pandocStrong,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocLinkArea,pandocFootnoteID,@Spell,pandocPCite
dsanson commented 11 years ago

Can you describe the effect a bit more? I am not noticing any effect that fits your description.

Answeror commented 11 years ago

I am using an old commit f848c9f803af735214dd649099b36314f44d0068. The problem doesn't exist in the new version.