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,7 +5,7 @@
" "
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