vimtex/syntax/latextoc.vim

24 lines
745 B
VimL
Raw Normal View History

2014-07-22 18:08:57 -04:00
" LaTeX plugin for Vim
"
" Maintainer: Karl Yngve Lervåg
" Email: karl.yngve@gmail.com
"
2014-07-18 18:12:29 -04:00
syntax match TocHelpText /^.*: .*/
2014-08-10 12:33:50 -04:00
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
2013-10-05 07:53:42 -04:00
2014-07-18 18:12:29 -04:00
highlight link TocHelpText helpVim
highlight link TocNum Number
highlight link TocSec0 Title
highlight link TocSec1 Normal
highlight link TocSec2 helpVim
2014-07-18 18:12:29 -04:00
highlight link TocSec3 NonText
highlight link TocSec4 Comment
2014-12-08 14:44:17 -05:00
" vim: fdm=marker sw=2