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

ugly comments in catch

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

Prettier 1.14.3

PHP Plugin 0.8.0

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

Input:

try {}
catch(
// comment
Exception
// comment
$foo
// comment
) {}

Output:

try {
} catch (// comment
Exception // comment
$foo) {
    // comment

}

Expected behavior:

Based on this https://github.com/prettier/prettier/pull/5202/files

alexander-akait avatar Oct 08 '18 19:10 alexander-akait