atom-fold-functions icon indicating copy to clipboard operation
atom-fold-functions copied to clipboard

fold php style functions

Open farnabaz opened this issue 8 years ago • 0 comments

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

farnabaz avatar Jan 16 '17 20:01 farnabaz