plugin-php icon indicating copy to clipboard operation
plugin-php copied to clipboard

invalid comment position for `use`

Open alexander-akait opened this issue 6 years ago • 0 comments

Prettier 1.16.4

PHP Plugin 0.10.2

# Options (if any):
--single-quote

Input:

use /* Comment */ some\\namespaces\\/* Comment */{
    /* Comment */ClassA/* Comment */,
    /* Comment */ ClassB/* Comment */,
    /* Comment */ ClassC /* Comment */ as /* Comment */ C
};

Output:

use some\\namespaces\\{
    /* Comment */ /* Comment */ /* Comment */ ClassA /* Comment */,
    /* Comment */ ClassB /* Comment */,
    /* Comment */ ClassC as /* Comment */ /* Comment */ C
};

Expected behavior:

As input

alexander-akait avatar Aug 26 '19 12:08 alexander-akait