From 211335c4b681bd4afbff81174ae6b042553a4fbc Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Mon, 10 Sep 2012 12:41:43 -0400 Subject: [PATCH] Add autocommands to fix up a bit of Tex syntax. --- colors/badwolf.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/colors/badwolf.vim b/colors/badwolf.vim index 55584ea..d7d8f01 100644 --- a/colors/badwolf.vim +++ b/colors/badwolf.vim @@ -477,6 +477,7 @@ call s:HL('javaDocParam', 'dalespale', '', '') " }}} " LaTeX {{{ + call s:HL('texStatement', 'tardis', '', 'none') call s:HL('texMathZoneX', '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('texDelimiter', 'orange', '', '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 {{{