From c1a258526b765284a2a19af58bec942cbea66ca8 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Mon, 15 Sep 2008 07:50:16 -0400 Subject: [PATCH] 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 ^^ --- plugin/CSApprox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/CSApprox.vim b/plugin/CSApprox.vim index 177673a..3febedf 100644 --- a/plugin/CSApprox.vim +++ b/plugin/CSApprox.vim @@ -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