Slight tweak to a function comment
This commit is contained in:
parent
2f539bbe1f
commit
11de60a4fb
@ -90,8 +90,10 @@ function! HexToDec(arg)
|
|||||||
return (a:arg =~? '^0x') ? a:arg + 0 : ('0x'.a:arg) + 0
|
return (a:arg =~? '^0x') ? a:arg + 0 : ('0x'.a:arg) + 0
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"
|
||||||
" Example: HexColorToRGB('#0088FF')
|
" Example: HexColorToRGB('#0088FF')
|
||||||
" Returns: [0, 136, 255]
|
" Returns: [0, 136, 255]
|
||||||
|
"
|
||||||
function! HexColorToRGB(hex_color)
|
function! HexColorToRGB(hex_color)
|
||||||
let l:rgb = []
|
let l:rgb = []
|
||||||
if matchstr(a:hex_color, s:hex_color_pattern) == a:hex_color
|
if matchstr(a:hex_color, s:hex_color_pattern) == a:hex_color
|
||||||
|
Loading…
Reference in New Issue
Block a user