2072 / PHP-Indenting-for-VIm

The official VIm indent script for PHP
http://www.2072productions.com/to/phpindent.txt
128 stars 29 forks source link

Indenting of function arguments #76

Open berarma opened 4 years ago

berarma commented 4 years ago

Hi.

There's a case where the indentation is not what I would expect.

For example, I get the following indentation:

a(
    b(
        c(
        )
    )
)

But I get this indentation for similar code:

a($o
    ->b($o
    ->c(
    )
    )
)

The first argument list gets indented by the following ones use the same indentation level.

I expected this:

a($o
    ->b($o
        ->c(
        )
    )
)

Is that possible?

Thanks for your work.