We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3379d0 commit 565b2b0Copy full SHA for 565b2b0
after/syntax/css.vim
@@ -18,7 +18,7 @@ function! s:FGforBG(bg)
18
endfunction
19
20
function! s:SetMatcher(clr,pat)
21
- let group = 'cssColor'.substitute(a:clr,'^#','','')
+ let group = 'cssColor'.matchstr(a:clr,'^#\zs.*')
22
redir => s:currentmatch
23
silent! exe 'syn list' group
24
redir END
@@ -102,7 +102,7 @@ function! s:Rgb2xterm(color)
102
103
104
function! s:SetNamedColor(clr,name)
105
106
exe 'syn keyword' group a:name 'contained'
107
exe 'syn cluster cssColors add='.group
108
if has('gui_running')
0 commit comments