QmlJS indenter: Fix incorrect indent after break/continue.

Make sure to push a transitory state before leave(true) so it only
finishes the statement - and not the surrounding statement!

Reviewed-by: trustme
This commit is contained in:
Christian Kamm
2010-09-30 19:00:31 +02:00
parent 4537a7eb38
commit b58ebe7d29
3 changed files with 16 additions and 1 deletions

View File

@@ -645,6 +645,7 @@ bool CodeFormatter::tryStatement()
return true;
case Break:
case Continue:
enter(breakcontinue_statement);
leave(true);
return true;
case Throw: