Updated TOC syntax
This commit is contained in:
parent
16d1ecb5a6
commit
08c26858e3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user