Add autocommands to fix up a bit of Tex syntax.

This commit is contained in:
Steve Losh
2012-09-10 12:41:43 -04:00
parent f2ee2b3aeb
commit 211335c4b6

View File

@@ -477,6 +477,7 @@ call s:HL('javaDocParam', 'dalespale', '', '')
" }}} " }}}
" LaTeX {{{ " LaTeX {{{
call s:HL('texStatement', 'tardis', '', 'none') call s:HL('texStatement', 'tardis', '', 'none')
call s:HL('texMathZoneX', 'orange', '', 'none') call s:HL('texMathZoneX', 'orange', '', 'none')
call s:HL('texMathZoneA', 'orange', '', 'none') call s:HL('texMathZoneA', 'orange', '', 'none')
@@ -493,6 +494,14 @@ call s:HL('texRefZone', 'lime', '', 'none')
call s:HL('texComment', 'darkroast', '', 'none') call s:HL('texComment', 'darkroast', '', 'none')
call s:HL('texDelimiter', 'orange', '', 'none') call s:HL('texDelimiter', 'orange', '', 'none')
call s:HL('texZone', 'brightgravel', '', 'none') call s:HL('texZone', 'brightgravel', '', 'none')
augroup badwolf_tex
au!
au BufRead,BufNewFile *.tex syn region texMathZoneV start="\\(" end="\\)\|%stopzone\>" keepend contains=@texMathZoneGroup
au BufRead,BufNewFile *.tex syn region texMathZoneX start="\$" skip="\\\\\|\\\$" end="\$\|%stopzone\>" keepend contains=@texMathZoneGroup
augroup END
" }}} " }}}
" LessCSS {{{ " LessCSS {{{