Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362455

Summary: [formatter] indentation of comments in object
Product: [WebTools] JSDT Reporter: Victor Homyakov <vkhomyackov>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: NEW --- QA Contact: Chris Jaun <cmjaun>
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Victor Homyakov CLA 2011-10-31 04:29:41 EDT
When formatting this example:

var style={
  // border: "0",
  height: height+"px",
  // padding: "0px",
  width: width+"px"
  // margin: "0px"
};

result should look like

var style = {
  // border: "0",
  height: height + "px",
  // padding: "0px",
  width: width + "px"
  // margin: "0px"
};

but is

var style = {
  // border: "0",
  height: height + "px",
  // padding: "0px",
  width: width + "px"
// margin: "0px"
};

The last comment before closing brace is misaligned (is on the level of the "var style = ..." declaration).

Eclipse:
Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 1
Build id: 20110916-0149
Comment 1 Victor Homyakov CLA 2012-07-06 04:20:00 EDT
This bug is still present in Web Tools 3.4.0