qmljs: indent expression in if condition and indent lambda expressions

* indent expressions (like function defs) in if condition
  fixes QTCREATORBUG-7243

Change-Id: I61197317a8dcba72a45b660600711748e2e2b962
Reviewed-by: Christian Kamm <kamm@incasoftware.de>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Fawzi Mohamed
2012-11-21 11:05:03 +01:00
committed by Fawzi Mohamed
parent 9bf654743e
commit 66eb27e687
3 changed files with 22 additions and 12 deletions

View File

@@ -154,7 +154,6 @@ public: // must be public to make Q_GADGET introspection work
else_clause, // The else line of an if-else construct.
condition_open, // Start of a condition in 'if', 'while', entered after opening paren
condition_paren_open, // After an lparen in a condition
substatement, // The first line after a conditional or loop construct.
substatement_open, // The brace that opens a substatement block.