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

incorrect indent for function arguments in separated line #63

Closed zcodes closed 6 years ago

zcodes commented 6 years ago

// it should be like this
$user
    ->some_func(
        $arg1, $arg2   
    );

// but actually 
$user
    ->some_func(
    $arg1, $arg2
);

it caused by code at line 1617-1619 of php.vim, it not check the condition like this and subtract a s:sw() width of indentation.

2072 commented 6 years ago

Thanks for reporting, this should be fixed now.