Bug 544637 - better handling of multiline comments at end of comma-separated lists
Summary: better handling of multiline comments at end of comma-separated lists
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-20 11:50 EST by Thierry BLIND CLA
Modified: 2020-05-14 11:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry BLIND CLA 2019-02-20 11:50:49 EST
Hi,
for now, when we put a (one liner) multiline comment at the end of a comma-separated list (before the closing parenthesis/bracket), we always insert a newline.

So for example:

<?php
foo($var /* comment */);
?>

would always be formatted as:
<?php
foo($var /* comment */
);
?>

It would look better when we could keep closing parenthesis on same line than the comment:
<?php
foo($var /* comment */);
?>

That's a minor tweak, I'll send a patch soon.

Thierry.
Comment 1 Eclipse Genie CLA 2019-02-20 13:36:23 EST
New Gerrit change created: https://git.eclipse.org/r/137317
Comment 3 Thierry BLIND CLA 2019-02-20 17:30:53 EST
Fixed.