blob: dc42280fca429df051e34bf6de103e495342ead1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
if !exists("g:DisableAutoPHPFolding")
let g:DisableAutoPHPFolding = 0
endif
if !g:DisableAutoPHPFolding
" Don't use the PHP syntax folding
setlocal foldmethod=manual
" Turn on PHP fast folds
EnableFastPHPFolds
endif
" Fix matchpairs for PHP (for matchit.vim plugin)
if exists("loaded_matchit")
let b:match_skip = 's:comment\|string'
let b:match_words = '<?\(php\)\?:?>,\<switch\>:\<endswitch\>,' .
\ '\<if\>:\<elseif\>:\<else\>:\<endif\>,' .
\ '\<while\>:\<endwhile\>,\<do\>:\<while\>,' .
\ '\<for\>:\<endfor\>,\<foreach\>:\<endforeach\>' .
\ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' .
\ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' .
\ '<\@<=\([^/?][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>,' .
\ '<:>,(:),{:},[:]'
endif
|