Fixed indentation of QML/JS function calls.

This commit is contained in:
Roberto Raggi
2010-01-13 14:41:52 +01:00
parent e3e4f1b986
commit ea9dc16430

View File

@@ -653,8 +653,10 @@ bool QScriptIndenter::isUnfinishedLine()
It doesn't end with ';' or similar. If it's neither
"Q_OBJECT" nor "if (x)", it must be an unfinished line.
*/
unf = (yyLine->indexOf(QLatin1String("Q_OBJECT")) == -1 &&
!matchBracelessControlStatement());
unf = ! matchBracelessControlStatement();
if (unf && lastCh == QLatin1Char(')'))
unf = false;
} else if (lastCh == QLatin1Char(';')) {
if (lastParen(*yyLine) == QLatin1Char('(')) {
/*