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

@@ -143,7 +143,8 @@ public: // must be public to make Q_GADGET introspection work
jsblock_open,
empty_statement, // for a ';', will never linger
empty_statement, // for a ';', will be popped directly
breakcontinue_statement, // for continue/break, will be popped directly
if_statement, // After 'if'
maybe_else, // after the first substatement in an if