diff --git a/plugin/indent-guides.vim b/plugin/indent-guides.vim index 3253072..b7bd444 100644 --- a/plugin/indent-guides.vim +++ b/plugin/indent-guides.vim @@ -90,8 +90,10 @@ function! HexToDec(arg) return (a:arg =~? '^0x') ? a:arg + 0 : ('0x'.a:arg) + 0 endfunction +" " Example: HexColorToRGB('#0088FF') " Returns: [0, 136, 255] +" function! HexColorToRGB(hex_color) let l:rgb = [] if matchstr(a:hex_color, s:hex_color_pattern) == a:hex_color