chrisbra / Colorizer

color hex codes and color names
549 stars 31 forks source link

Error when running ColorToggle with rgba colors present #61

Closed gandalf3 closed 6 years ago

gandalf3 commented 6 years ago

When running ColorToggle with a file with any rgba colors, e.g:

rgba(0, 0, 0, 1)

I get the following error:

Colorizer: Some error occured here:  Colorize: ['rgba(\s*\%(\d\+%\?\D*\)\{3}\%(\%(0\?\%(.\d\+\)\?\)\|1\))', function('<SNR>102_ColorRGBValues'), 'colorizer_rgba', 1, []]
Colorizer: Position: [0, 1, 1, 0]

Running in NVIM v0.3.1

chrisbra commented 6 years ago

Please test in Vim. I cannot reproduce the problem here with Vim 8.1.193.

gandalf3 commented 6 years ago

Sure enough it works in vim here as well. Is neovim not supported?

chrisbra commented 6 years ago

Well, I am not using neovim, but I don't remember using any Vim specifics (it's not the job api) here. Since neovim claims to be compatible with Vim, this should be raised with their devs. I cannot guess what problem neovim has here.

chrisbra commented 6 years ago

closing, as this does not seem to be a bug in this plugin.