Updated TOC syntax

This commit is contained in:
Karl Yngve Lervåg 2014-07-19 00:12:29 +02:00
parent 16d1ecb5a6
commit 08c26858e3

View File

@ -1,10 +1,15 @@
syntax match helpText /^.*: .*/
syntax match secNum /^\S\+\(\.\S\+\)\?\s*/ contained conceal
syntax match secLine /^\S\+\t.\+/ contains=secNum
syntax match mainSecLine /^[^\.]\+\t.*/ contains=secNum
syntax match ssubSecLine /^[^\.]\+\.[^\.]\+\.[^\.]\+\t.*/ contains=secNum
syntax match TocHelpText /^.*: .*/
syntax match TocNum /^\S\+\(\.\S\+\)\?\s*/ contained conceal
syntax match TocSec /^\t.\+/
syntax match TocSec1 /^[^\.]\+\t.*/ contains=secNum
syntax match TocSec2 /^\([^\.]\+\.\)\{1}[^\.]\+\t.*/ contains=secNum
syntax match TocSec3 /^\([^\.]\+\.\)\{2}[^\.]\+\t.*/ contains=secNum
syntax match TocSec4 /^\([^\.]\+\.\)\{3}[^\.]\+\t.*/ contains=secNum
highlight link helpText PreProc
highlight link secNum Number
highlight link mainSecLine Title
highlight link ssubSecLine Comment
highlight link TocHelpText helpVim
highlight link TocNum Number
highlight link TocSec Title
highlight link TocSec1 TocSec
highlight link TocSec2 Normal
highlight link TocSec3 NonText
highlight link TocSec4 Comment