Fixed TOC syntax

This commit is contained in:
Karl Yngve Lervåg 2014-08-10 18:33:50 +02:00
parent cf4f1a8d74
commit 5f7ada246f

View File

@ -5,12 +5,12 @@
" "
syntax match TocHelpText /^.*: .*/ syntax match TocHelpText /^.*: .*/
syntax match TocNum /^\(\S\+\(\.\S\+\)*\)\?\s*/ contained conceal syntax match TocNum /^\(\([A-Z]\+\>\|\d\+\)\(\.\d\+\)*\)\?\s*/ contained
syntax match TocSec0 /^.*0$/ contains=TocNum,@Tex syntax match TocSec0 /^.*0$/ contains=TocNum,@Tex
syntax match TocSec1 /^.*1$/ contains=TocNum,@Tex syntax match TocSec1 /^.*1$/ contains=TocNum,@Tex
syntax match TocSec2 /^.*2$/ contains=TocNum,@Tex syntax match TocSec2 /^.*2$/ contains=TocNum,@Tex
syntax match TocSec3 /^.*3$/ contains=TocNum,@Tex syntax match TocSec3 /^.*3$/ contains=TocNum,@Tex
syntax match TocSec4 /^.*4$/ contains=TocNum,@Tex syntax match TocSec4 /^.*4$/ contains=TocNum,@Tex
highlight link TocHelpText helpVim highlight link TocHelpText helpVim
highlight link TocNum Number highlight link TocNum Number