Closed mklein994 closed 6 years ago
I would like to highlight 0xffaa33 the same way as #ffaa33. I'm using Neovim.
0xffaa33
#ffaa33
Here is a minimal init.vim to reproduce the problem:
init.vim
" ~/min-init.vim let g:colorizer_hex_pattern = ['0x', '\x\{6}', ''] call plug#begin($HOME.'/.local/share/nvim/plugged') Plug 'chrisbra/Colorizer' call plug#end() " 0xffaa33
Using this configuration, the comment at the end of the file should be highlighted in an orange color (#ffaa33), but isn't:
nvim -u NONE -u ~/min-init.vim -c ':ColorHighlight' min-init.vim
I tried a few things, and noticed that both of the bottom comments are highlighted as long as the colors are the same, using this configuration:
" ~/min-init.vim let g:colorizer_hex_pattern = ['\%(0x\|#\)', '\x\{6}', ''] call plug#begin($HOME.'/.local/share/nvim/plugged') Plug 'chrisbra/Colorizer' call plug#end() " 0xffaa33 " #ffaa33
thanks for the clear example. I think I fixed it
I would like to highlight
0xffaa33
the same way as#ffaa33
. I'm using Neovim.Here is a minimal
init.vim
to reproduce the problem:Using this configuration, the comment at the end of the file should be highlighted in an orange color (
#ffaa33
), but isn't:I tried a few things, and noticed that both of the bottom comments are highlighted as long as the colors are the same, using this configuration: