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

Misalign with switch #66

Closed Mte90 closed 6 years ago

Mte90 commented 6 years ago

With a code like this one:

    switch($country){
    case 'AT': // blabla
        $isValid = (bool) true;
        break;
    case 'BE': // blabla
        $isValid = (bool) true;
        break;
[...]

I get this alignment, if I fix manually a save will change the code as my example.

2072 commented 6 years ago

If the problem is the switch and case being indented at the same level, this is expected behavior, see: https://github.com/2072/PHP-Indenting-for-VIm/issues/56.

Mte90 commented 6 years ago

Confirmed this fix the issue. I forgot to check the doc folder in VIM -.-' I checked only the readme.