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:
parent
fa556ebcd8
commit
c1a258526b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user