Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Colorizing parenthesis #63

Closed
fcojavierdomenech opened this issue Oct 27, 2016 · 1 comment
Closed

Colorizing parenthesis #63

fcojavierdomenech opened this issue Oct 27, 2016 · 1 comment

Comments

@fcojavierdomenech
Copy link

Hi, I'd like to assign a custom colour to the parenthesis, but I can't find the way to do it.

I've tried this on my vimrc:
autocmd BufRead,BufNewFile * syn match parens /[(){}]/ | hi parens ctermfg=red

also putting at the bottom of my vimrc:

function! PhpSyntaxOverride()
syn match parens /[(){}]/ | hi! parens ctermfg=blue
endfunction

augroup phpSyntaxOverride
autocmd!
autocmd FileType php call PhpSyntaxOverride()
augroup END

Nothing.. no way to change it. Any hint please?

@StanAngeloff
Copy link
Owner

Try with the following instead:

syn match phpParentOnly "[()]" contained containedin=phpParent
hi phpParentOnly guifg=#f08080 guibg=NONE gui=NONE

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants