CppTools: Fix indent after template params

Add case for ">>" token when in template_param state.

Task-number: QTCREATORBUG-9640
Change-Id: Icc5fc868202d6503d2afd954aa739cd2634cdff1
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Dave Lewis
2014-03-17 15:54:34 -04:00
committed by Erik Verbruggen
parent 61f18e6fc2
commit 5510ec0552
2 changed files with 3 additions and 0 deletions

View File

@@ -169,6 +169,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
switch (kind) {
case T_LESS: enter(template_param); break;
case T_GREATER: leave(); break;
case T_GREATER_GREATER: leave(); leave(); break; // call leave twice to pop both template_param states
} break;
case operator_declaration: