Commit Graph

8 Commits

Author SHA1 Message Date
Matt Wozniski
c3e7c42207 Clean up some ugly code in s:Highlights() 2009-01-15 13:19:42 -05:00
Matt Wozniski
94d110f5a5 Fix some broken logic gathering highlights
Before, we would break the loop if we hit a highlight group with an
empty name.  In that case, we should actually continue the loop.
I moved the loop index increment to the beginning of the loop to make
this easier.
2009-01-15 13:19:42 -05:00
Matt Wozniski
7b00efcb8f Speed tweak - reorganize a loop 2009-01-15 13:19:42 -05:00
Matt Wozniski
46f20b0782 CSApprox speedup - caching in approximator
The default approximator has been modified to cache both the sorted list
of all possible components and the closest cterm color to a given rgb
color - drops execution time by about one quarter.
2009-01-15 13:19:42 -05:00
Matt Wozniski
60e43e82d0 Fix broken behavior in compatible mode. 2009-01-15 13:19:42 -05:00
Matt Wozniski
c1a258526b 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
                                           ^^
2009-01-15 13:19:42 -05:00
Matt Wozniski
fa556ebcd8 Completed beta release of CSApprox.vim 2009-01-15 13:18:20 -05:00
Matt Wozniski
48ce53f0d4 Initial commit 2009-01-15 13:17:50 -05:00