ap / vim-css-color

Preview colours in source code while editing
http://www.vim.org/scripts/script.php?script_id=5056
MIT License
1.77k stars 78 forks source link

Support hsl(0deg, 100%, 50%) #192

Closed tribela closed 5 months ago

tribela commented 5 months ago

This pr add support hsl(0deg, 100%, 50%);

ap commented 5 months ago

Thank you for the patch. I’ve pushed it as faa65935660a4596414fe21d57e2110faeb9e869.

Properly supporting deg values needs more work because the patch as is makes the plugin accept nonsense like rgb(30deg,30deg,30deg). But the plugin is no longer fully up to date with CSS specs anyway, and the changes needed to make it compliant will be much bigger than just a few tweaks to this patch. So I decided to file #193 for those changes and to take your patch as is in the meantime.

Thank you for providing it and for prompting me to check the plugin against at the current state of the specs.