pendingSpace = false;
}
}
+ // don't linebreak empty array declarations
+ if (token == TokenNameRPAREN && arrayDeclarationCount > 0) {
+ if (previousCompilableToken == TokenNameLPAREN) {
+ pendingNewLines = 0;
+ }
+ }
// Add pending new lines to the formatted source string.
// Note: pending new lines are not added if the current token
// is a single line comment or whitespace.
// check for closing array declaration
if (arrayDeclarationCount>0) {
if (arrayDeclarationParenthesis[arrayDeclarationCount]==openParenthesis[openParenthesisCount]) {
- newLine(1);
+ if (previousCompilableToken != TokenNameLPAREN) {
+ newLine(1);
+ }
indentationLevel--;
currentLineIndentationLevel = indentationLevel;
pendingNewLines = 0;