atom-fold-functions
atom-fold-functions copied to clipboard
fold php style functions
In PHP coding style functions scope starts from new line, like this
function foo($args)
{
...
}
I create new condition in fold function that check if current row is foldable and last row was not a foldable function row. if so assume this line as start of function and fold this scope.
also after I fold function of a coffee script file with 2 space intents, package does not fold my php code with 4 space indents, and I think it may be good if we clear @indentLevel in beginning of fold and count functions