From 042bcb741bf32195f856318bac9798e6f5e714b9 Mon Sep 17 00:00:00 2001 From: Sergei Kasatkin Date: Fri, 8 May 2020 23:42:19 +0200 Subject: [PATCH] improved PHP highlighting --- colors/darcula.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/colors/darcula.vim b/colors/darcula.vim index a2da357..e41369a 100644 --- a/colors/darcula.vim +++ b/colors/darcula.vim @@ -510,3 +510,26 @@ hi! link shOperator NormalFg " help hi! link helpHyperTextJump Number + +" PHP +if has("autocmd") + autocmd BufEnter *.php call s:Hi('Normal', s:p.fg, s:p.templateLanguage) +endif +hi! link phpFunctions Normal +hi! link phpFunction function +hi! link phpMethod function +hi! link phpIdentifier constant +hi! link phpMethodsVar constant +hi! link phpInclude keyword +hi! link phpBoolean keyword +hi! link phpSpecialChar keyword +hi! link phpParent Normal +hi! link phpOperator Normal +hi! link phpMemberSelector Normal +hi! link phpStaticClasses Normal +hi! link phpDocComment docComment +hi! link phpDocParam docComment +hi! link phpDocIdentifier docComment +hi! link phpCommentStar docComment +hi! link phpCommentTitle docComment +call s:Hi('phpDocTags', s:p.docComment, s:p.null, 'bold,italic,underline')