swekaj / php-foldexpr.vim

Vim folding for PHP with foldexpr
MIT License
41 stars 10 forks source link

protected methods not matched. #19

Closed artfulrobot closed 9 years ago

artfulrobot commented 9 years ago

This is a simple one. The regex includes private twice, but I suspect one should be protected.

" handle class methods and independent functions
    if line =~? '\v\s*(abstract\s+|public\s+|private\s+|static\s+|private\s+)*function\s+(\k|\()' && line !~? ';$'
swekaj commented 9 years ago

Fixed by #21.