einars/js-beautify — Issue #84:  Wrong indentation for block comments
Author: Hagendorn
Created: 2011-12-21 08:47:28+00:00
State: open

When I use block comments in my code the indentation is not set correct:

products.Proxy =
{
/*
*****************************************************************************
STATICS
*****************************************************************************
*/

ACTION_OK : 0,
NAME_CONFLICT : 1,
INVALID_NAME : 2,
FILE_NOT_FOUND : 3,
REQUEST_FAILED : 4,
RESOURCE_LOCKED : 5,
NOT_ALLOWED : 6,
UNAUTHORIZED : 401,
CONFLICT : 409,
TIMEOUT : 8,
CASESENSITIVE_NAME_CONFLICT : 7
};

Is formatted to:

products.Proxy = {
/*
*****************************************************************************
STATICS
*****************************************************************************
*/

ACTION_OK: 0,
NAME_CONFLICT: 1,
INVALID_NAME: 2,
FILE_NOT_FOUND: 3,
REQUEST_FAILED: 4,
RESOURCE_LOCKED: 5,
NOT_ALLOWED: 6,
UNAUTHORIZED: 401,
CONFLICT: 409,
TIMEOUT: 8,
CASESENSITIVE_NAME_CONFLICT: 7
};