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

Function-returning-reference body indenting #62

Closed h3xx closed 6 years ago

h3xx commented 6 years ago

Given the following file:

<?php
class Foo {
    public function &bar() {
        $foo = 0;
    }
}

Indenting the class (gg=G) causes the function body and end-of-function brace to be indented one sw to the left of where it should be:

<?php
class Foo {
    public function &bar() {
    $foo = 0;
}
}
2072 commented 6 years ago

Thanks for the report that was easy to fix!

h3xx commented 6 years ago

Confirmed fixed. Thanks!