This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Dear maintainer, a Javascript module may be written as: ( function(window) { var module; /* put more coding here */ // Expose global window.module = module; }(window) ); Reformatting creates ( function(window) { var module; /* put more coding here */ // Expose global window.module = module; }(window) ); The closing brace "}" should be indented, as it is inside of parentheses "()". The closing parenthesis ")" on the last line should have the same indentation as the corresponding opening parenthesis "(". Bug 202932 - Support for Module pattern describes a different problem related to the Navigator. Best regards Heinrich Schuchardt
(In reply to comment #0) > The closing brace "}" should be indented, as it is inside of parentheses "()". Might be, but whole function block would be indented in such case. Others might don't like it in general case. > > The closing parenthesis ")" on the last line should have the same indentation > as the corresponding opening parenthesis "(". Nope as it is continuation. > > Bug 202932 - Support for Module pattern > describes a different problem related to the Navigator. > > Best regards > > Heinrich Schuchardt I think it is enhancement.