PHP-Indenting-for-VIm icon indicating copy to clipboard operation
PHP-Indenting-for-VIm copied to clipboard

variable assignment spanning multiple lines

Open jnorell opened this issue 3 years ago • 1 comments

Hello,

Indenting is missed on multi-line variable assignment, eg. for something like this I would expect the second and third line to indent:

$sql = "select something "
. "from somewhere "
. "where conditions=match";

Is there a way to configure that to happen?

Thanks...

jnorell avatar Dec 28 '21 22:12 jnorell

Hi,

It's something that happens only when the declaration is at col 0 and it's the first statement in the file:

<?php

$sql = "select something "
. "from somewhere "
. "where conditions=match";

$sql = "select something "
    . "from somewhere "
    . "where conditions=match";

2072 avatar Aug 04 '22 07:08 2072