QmlJS indenter: Fix object bindings with namespaces.

Task-number: QTCREATORBUG-3371
Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2011-01-20 11:29:45 +01:00
parent ca73b6b95f
commit 90a44ab1df
3 changed files with 18 additions and 1 deletions

View File

@@ -246,8 +246,10 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
case expression_or_objectdefinition:
switch (kind) {
case Dot:
case Identifier: break; // need to become an objectdefinition_open in cases like "width: Qt.Foo {"
case LeftBrace: turnInto(objectdefinition_open); break;
default: enter(expression); continue; // really? first token already gone!
default: enter(expression); continue; // really? identifier and more tokens might already be gone
} break;
case expression: