swekaj / php-foldexpr.vim

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

Fold HEREDOCs and NOWDOCs #1

Closed swekaj closed 10 years ago

swekaj commented 10 years ago

Just realized I forgot to implement folding for HEREDOCs and NOWDOCs.

Probably open folds on the pattern /<<<\w+/ and close on /^\w+;$/

swekaj commented 10 years ago

I'm not sure how possible this is. I seem to have trouble getting Vim to match '<<<EOF' and the like. Regexes that should work (e.g. /\v<<<('?)\h\w*\1$/), don't.