Mercurial > ec-dotfiles
view vendor/vim-packs/srcery-vim/autoload/srcery/helper.vim @ 746:6b7f6f09b8d1 default tip
[vimrc] fix php syntax highlight
Example file: https://github.com/ppy/osu-web/blob/e23658f45ac2e85d78bd339947e0d1cee57629c6/app/Libraries/BBCodeFromDB.php
(around the end)
| author | nanaya <me@nanaya.net> | 
|---|---|
| date | Wed, 29 Oct 2025 12:28:45 +0900 | 
| parents | 2cf87b7ca09a | 
| children | 
line wrap: on
 line source
" ----------------------------------------------------------------------------- " File: helper.vim " Description: Srcery colorscheme helpers functions " Authors: Daniel Berg <mail@roosta.sh>, Birger J. Nordolum <contact+srcery@mindtooth.no> " Last Modified: 2020-08-27 " ----------------------------------------------------------------------------- " Helper to get a source color defined in colorscheme function! srcery#helper#GetColor(group, ...) abort " Arguments: group, what " optionally pass a 'what' argument, defaults to 'fg' if a:0 > 0 let l:what = a:1 else let l:what = 'fg' endif let l:gui_color = synIDattr(hlID(a:group), l:what, 'gui') let l:term_color = synIDattr(hlID(a:group), l:what, 'cterm') return [ l:gui_color, l:term_color ] endfunction " vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:
