Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /