From faa65935660a4596414fe21d57e2110faeb9e869 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Sun, 14 Jan 2024 01:59:05 +0900 Subject: [PATCH] support deg unit in HSL values --- autoload/css_color.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/css_color.vim b/autoload/css_color.vim index ebfc705..d037f31 100644 --- a/autoload/css_color.vim +++ b/autoload/css_color.vim @@ -231,7 +231,7 @@ let s:_hexcolor = '#\(\x\{3}\%(\>\|\x\{3}\>\)\)' " submatch 1 let s:_rgbacolor = '#\(\x\{3}\%(\>\|\x\%(\>\|\x\{2}\%(\>\|\x\{2}\>\)\)\)\)' " submatch 1 let s:_funcname = '\(rgb\|hsl\)a\?' " submatch 2 let s:_ws_ = '\s*' -let s:_numval = s:_ws_ . '\(\d\{1,3}%\?\)' " submatch 3,4,5 +let s:_numval = s:_ws_ . '\(\d\{1,3}\%(%\|deg\)\?\)' " submatch 3,4,5 let s:_listsep = s:_ws_ . ',' let s:_otherargs_ = '\%(,[^)]*\)\?' let s:_funcexpr = s:_funcname . '[(]' . s:_numval . s:_listsep . s:_numval . s:_listsep . s:_numval . s:_ws_ . s:_otherargs_ . '[)]'