vimtex/syntax/latextoc.vim
Karl Yngve Lervåg 5f7ada246f Fixed TOC syntax
2014-08-10 18:33:50 +02:00

22 lines
721 B
VimL

" LaTeX plugin for Vim
"
" Maintainer: Karl Yngve Lervåg
" Email: karl.yngve@gmail.com
"
syntax match TocHelpText /^.*: .*/
syntax match TocNum /^\(\([A-Z]\+\>\|\d\+\)\(\.\d\+\)*\)\?\s*/ contained
syntax match TocSec0 /^.*0$/ contains=TocNum,@Tex
syntax match TocSec1 /^.*1$/ contains=TocNum,@Tex
syntax match TocSec2 /^.*2$/ contains=TocNum,@Tex
syntax match TocSec3 /^.*3$/ contains=TocNum,@Tex
syntax match TocSec4 /^.*4$/ contains=TocNum,@Tex
highlight link TocHelpText helpVim
highlight link TocNum Number
highlight link TocSec0 Title
highlight link TocSec1 Normal
highlight link TocSec2 helpVim
highlight link TocSec3 NonText
highlight link TocSec4 Comment