diff --git a/plugin/phpfolding.vim b/plugin/phpfolding.vim index a44fba8..4b390d2 100644 --- a/plugin/phpfolding.vim +++ b/plugin/phpfolding.vim @@ -176,7 +176,7 @@ function! s:PHPCustomFolds() " {{{ " 'g:searchEmptyLinesPostfixing'.. " Fold function with PhpDoc (function foo() {}) - call s:PHPFoldPureBlock('function', s:FOLD_WITH_PHPDOC) + call s:PHPFoldPureBlock('\(^\|\s\)function\s', s:FOLD_WITH_PHPDOC) " Fold class properties with PhpDoc (var $foo = NULL;) call s:PHPFoldProperties('^\s*\(\(private\)\|\(public\)\|\(protected\)\|\(var\)\)\s\$', ";", s:FOLD_WITH_PHPDOC, 1, 1)