chrisbra / Colorizer

color hex codes and color names
547 stars 30 forks source link

Problem with :ColorHighlight sometimes #72

Closed mckellyln closed 5 years ago

mckellyln commented 5 years ago

Colorizer: Some error occured here: Colorize: ['\%(gui[fb]g|cterm[fb]g)\s=\s\<\%(\d+|#\x{6}|\w+)>', function('47_PreviewVimColors'), 'colorizer_vimcolors', '&ft ==# "vim"', []] Colorizer: Position: [0, 2015, 29, 0]

mckellyln commented 5 years ago

I can work around this with:

let g:colorizer_vimcolors_disable = 1

But let me know if there is anything I can do to help debug/solve.

chrisbra commented 5 years ago

So what is so special at that line 2015?

mckellyln commented 5 years ago

Nothing that I can see -

2015   elseif &filetype !=# 'GV'
chrisbra commented 5 years ago

that does not match \%(gui[fb]g\|cterm[fb]g\)\s*=\s*\<\%(\d\+\|#\x\{6}\|\w\+\)\>, so how does it interfere with Colorizer? Can you provide the complete file (or a stripped down example)?

mckellyln commented 5 years ago

@chrisbra I'll work on debugging this. If I can come up with something that reliably shows a problem I'll re-open and post. Thanks for this.