From 5f7ada246f37fe5c9f4883be2842e21040e8cf01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 10 Aug 2014 18:33:50 +0200 Subject: [PATCH] Fixed TOC syntax --- syntax/latextoc.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/syntax/latextoc.vim b/syntax/latextoc.vim index af87249..5967f1a 100644 --- a/syntax/latextoc.vim +++ b/syntax/latextoc.vim @@ -5,12 +5,12 @@ " syntax match TocHelpText /^.*: .*/ -syntax match TocNum /^\(\S\+\(\.\S\+\)*\)\?\s*/ contained conceal -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 +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 highlight link TocHelpText helpVim highlight link TocNum Number