php-foldexpr.vim
php-foldexpr.vim copied to clipboard
Fold not closed on certain multi line arrays
The following:
<?php
$a = Array(
1,
2,
3,
4, );
$this_should_not_fold = [];
folds to:
$a = Array(...];------------ 7 lines +-
i.e. the fold is too greedy; the end of the array is not noticed.