C++ indenter: Fix for use of << and >> in parentheses.

Task-number: QTCREATORBUG-4076
This commit is contained in:
Christian Kamm
2011-03-15 15:05:05 +01:00
parent 4fa528813e
commit faff0c8ace
2 changed files with 20 additions and 1 deletions

View File

@@ -225,8 +225,9 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
else // stream_op_cont already
turnInto(stream_op_cont);
break;
case T_RPAREN:
case T_COMMA:
case T_SEMICOLON: leave(); continue; // always nested, propagate semicolon
case T_SEMICOLON: leave(); continue; // always nested, propagate
} break;
case member_init_open: