5b17fcb91dd5 v1.4.0

Add autocommands to fix up a bit of Tex syntax.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 10 Sep 2012 12:41:43 -0400
parents a14ca558acf3
children 65adfb4b8907
branches/tags v1.4.0
files colors/badwolf.vim

Changes

--- a/colors/badwolf.vim	Mon Sep 10 12:39:28 2012 -0400
+++ b/colors/badwolf.vim	Mon Sep 10 12:41:43 2012 -0400
@@ -477,6 +477,7 @@
 
 " }}}
 " 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('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 {{{