QmlJS indenter: Fix indent after do-while without semicolon.

Change-Id: I4909f4640e7cd115b6c5c54c7aca7fca511653c9
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
Christian Kamm
2011-11-09 11:44:10 +01:00
parent af8b381f98
commit 12a1ba08fa
2 changed files with 22 additions and 2 deletions

View File

@@ -430,7 +430,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
switch (kind) {
case While: break;
case LeftParenthesis: enter(do_statement_while_paren_open); break;
default: leave(true); break;
default: leave(true); continue; // error recovery
} break;
case do_statement_while_paren_open:
@@ -788,6 +788,7 @@ bool CodeFormatter::isExpressionEndState(int type) const
type == top_js ||
type == objectdefinition_open ||
type == if_statement ||
type == do_statement ||
type == else_clause ||
type == jsblock_open ||
type == substatement_open ||