Skip to content

Commit a3ef5ca

Browse files
committed
expose RGBA hex notation to filetypes
1 parent 96b3942 commit a3ef5ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/css_color.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ function! css_color#toggle()
258258
endif
259259
endfunction
260260

261-
let s:type = [ 'none', 'hex', 'css', 'none' ] " with wraparound for index() == -1
262-
let s:pat_for_type = [ '^$', s:_hexcolor, s:_csscolor, '^$' ]
261+
let s:type = [ 'none', 'hex', 'rgba', 'css', 'none' ] " with wraparound for index() == -1
262+
let s:pat_for_type = [ '^$', s:_hexcolor, s:_rgbacolor, s:_csscolor, '^$' ]
263263

264264
function! css_color#init(type, keywords, groups)
265265
let new_type = index( s:type, a:type )

0 commit comments

Comments
 (0)