Make extradata highlighting more robust.

Nested square brackets are now handled correctly.
This commit is contained in:
jez 2011-03-11 23:43:23 -05:00
parent 0ed5bf7841
commit ad67a3fcc6
1 changed files with 2 additions and 2 deletions

View File

@ -1457,8 +1457,8 @@ function! s:Tlist_Window_Init()
syntax match TagListComment '^" .*'
syntax match TagListFileName '^[^" ].*$'
syntax match TagListTitle '^ \S.*$'
syntax match TagListTagScope1 '\s\[[^]]*\]' nextgroup=TagListTagScope2 skipwhite
syntax match TagListTagScope2 '\s\[.\{-\}\]' contained
syntax region TagListTagScope1 start='\[' end='\]' contains=TagListTagScope1 nextgroup=TagListTagScope2 skipwhite
syntax region TagListTagScope2 start='\[' end='\]' contained contains=TaglistTagScope2
" Define the highlighting only if colors are supported
if has('gui_running') || &t_Co > 2