swekaj / php-foldexpr.vim

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

DocBlocks don't fold with only {@inheritDoc} #10

Closed swekaj closed 10 years ago

swekaj commented 10 years ago

When a DocBlock only contains {@inheritDoc} as the summary, or anything else without a ., it doesn't display in the best manner. e.g.

<?php

class foo extends bar
{
    /**
     * {@inheritDoc}
     */
    public function func()
    {
        // code
    }
}

Should fold to

<?php

class foo extends bar
{
+-- 7 lines: public selectQueue() {...} - {@inheritDoc}-----
}