Work around another vim bug.

Vim allows highlight groups with no name to be created; but doesn't
support getting any information for them.  Two commas in a row in a
"syn match" creates a new highlight group that's named "".  This bug is
triggered by the distributed doxygen.vim.

syn match doxygenStartSkip2 +^\s*\*$+ contained
\ nextgroup=doxygenBody,doxygenStartSpecial,,doxygenStartSkip skipwhite skipnl
                                           ^^
This commit is contained in:
Matt Wozniski 2008-09-15 07:50:16 -04:00
parent fa556ebcd8
commit c1a258526b

View File

@ -154,7 +154,7 @@ function! s:Highlights()
let i = 1
while 1
if synIDtrans(i) == 0
if synIDtrans(i) == 0 || !len(synIDattr(synIDtrans(i), "name"))
break
endif