Skip to content

Commit 6d84247

Browse files
authored
Merge pull request #10 from jsit/jsit/linear-gradient-9
Add linear-gradient values for background and background-image
2 parents fdc73eb + 9b6e0df commit 6d84247

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autoload/csscomplete.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function! csscomplete#CompleteCSS(findstart, base)
171171
elseif prop == 'background-color'
172172
let values = color_values
173173
elseif prop == 'background-image'
174-
let values = ["url(", "none"]
174+
let values = ["url(", "none", "linear-gradient(", "radial-gradient(", "repeating-linear-gradient(", "repeating-radial-gradient("]
175175
elseif prop == 'background-position'
176176
let vals = matchstr(line, '.*:\s*\zs.*')
177177
if vals =~ '^\%([a-zA-Z]\+\)\?$'
@@ -187,7 +187,7 @@ function! csscomplete#CompleteCSS(findstart, base)
187187
elseif prop == 'background-size'
188188
let values = ["auto", "contain", "cover"]
189189
elseif prop == 'background'
190-
let values = ["scroll", "fixed"] + color_values + ["url(", "none"] + ["top", "center", "bottom", "left", "right"] + ["repeat", "repeat-x", "repeat-y", "no-repeat"] + ["auto", "contain", "cover"]
190+
let values = ["scroll", "fixed"] + color_values + ["url(", "none", "linear-gradient(", "radial-gradient(", "repeating-linear-gradient(", "repeating-radial-gradient("] + ["top", "center", "bottom", "left", "right"] + ["repeat", "repeat-x", "repeat-y", "no-repeat"] + ["auto", "contain", "cover"]
191191
let postfix = ""
192192
elseif prop =~ '^border\%(-top\|-right\|-bottom\|-left\|-block-start\|-block-end\)\?$'
193193
let vals = matchstr(line, '.*:\s*\zs.*')

0 commit comments

Comments
 (0)