We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ffbf89 commit e9cc812Copy full SHA for e9cc812
1 file changed
autoload/csscomplete.vim
@@ -93,14 +93,17 @@ function! csscomplete#CompleteCSS(findstart, base)
93
if len(borders) == 0 || borders[max(keys(borders))] =~ '^\%(openbrace\|semicolon\|opencomm\|closecomm\|style\)$'
94
" Complete properties
95
96
-
97
let entered_property = matchstr(line, '.\{-}\zs[a-zA-Z-]*$')
98
99
for m in s:values
+ let postfix = ''
100
+ if strridx(after, ':') < 0
101
+ let postfix = ': '
102
+ endif
103
if m =~? '^'.entered_property
- call add(res, m . ': ')
104
+ call add(res, m . postfix)
105
elseif m =~? entered_property
- call add(res2, m . ': ')
106
+ call add(res2, m . postfix)
107
endif
108
endfor
109
0 commit comments