Community
Participate
Working Groups
this.scribe.printNextToken(operators[i], this.preferences.insert_space_before_binary_operator);
this.scribe.alignFragment(binaryExpressionAlignment, i);
}
if (operators[i] == TerminalTokens.TokenNameMINUS && isNextToken(TerminalTokens.TokenNameMINUS)) {
switch(operators[i]) {
// the next character is a minus (unary operator)
case TerminalTokens.TokenNameMINUS :
this.scribe.space();
if (isNextToken(TerminalTokens.TokenNameMINUS)
|| isNextToken(TerminalTokens.TokenNameMINUS_MINUS)) {
// the next character is a '-' or '--' (unary operator)
break;
case TerminalTokens.TokenNamePLUS :
if (isNextToken(TerminalTokens.TokenNamePLUS)
|| isNextToken(TerminalTokens.TokenNamePLUS_PLUS)) {
// the next character is a + or ++ (unary operator)
if (this.preferences.insert_space_after_binary_operator) {