Permalink
Browse files

Merge pull request #4 from MikkelPaulson/fold-const-docblocks

Added support for folding consts into their docblocks
  • Loading branch information...
2 parents d3e08a4 + 2577bc9 commit 4d7d1b710d3a28aa16c5a134a39a845d71f891c4 @rayburgemeestre committed May 19, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 ftplugin/php/phpfolding.vim
@@ -189,6 +189,9 @@ function! s:PHPCustomFolds() " {{{
" Fold define()'s with their PhpDoc
call s:PHPFoldProperties('^\s*define\s*(', ";", s:FOLD_WITH_PHPDOC)
+ " Fold consts with their PhpDoc
+ call s:PHPFoldProperties('^\s*const\s\+', ";", s:FOLD_WITH_PHPDOC)
+
" Fold includes with their PhpDoc
call s:PHPFoldProperties('^\s*require\s*', ";", s:FOLD_WITH_PHPDOC)
call s:PHPFoldProperties('^\s*include\s*', ";", s:FOLD_WITH_PHPDOC)

0 comments on commit 4d7d1b7

Please sign in to comment.