Skip to content

Commit faa6593

Browse files
tribelaap
authored andcommitted
support deg unit in HSL values
1 parent 6cc6573 commit faa6593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/css_color.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ let s:_hexcolor = '#\(\x\{3}\%(\>\|\x\{3}\>\)\)' " submatch 1
231231
let s:_rgbacolor = '#\(\x\{3}\%(\>\|\x\%(\>\|\x\{2}\%(\>\|\x\{2}\>\)\)\)\)' " submatch 1
232232
let s:_funcname = '\(rgb\|hsl\)a\?' " submatch 2
233233
let s:_ws_ = '\s*'
234-
let s:_numval = s:_ws_ . '\(\d\{1,3}%\?\)' " submatch 3,4,5
234+
let s:_numval = s:_ws_ . '\(\d\{1,3}\%(%\|deg\)\?\)' " submatch 3,4,5
235235
let s:_listsep = s:_ws_ . ','
236236
let s:_otherargs_ = '\%(,[^)]*\)\?'
237237
let s:_funcexpr = s:_funcname . '[(]' . s:_numval . s:_listsep . s:_numval . s:_listsep . s:_numval . s:_ws_ . s:_otherargs_ . '[)]'

0 commit comments

Comments
 (0)