forked from qt-creator/qt-creator
QmlJs: better indentation for switch common cases
Do not add an empty line between common cases in a `switch` block, according the best practices for javascript style. Task-number: QTCREATORBUG-18515 Change-Id: I8b665eabb9b1d5b617d608e430e8b9137dc32032 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -1102,6 +1102,7 @@ protected:
|
|||||||
out("case ", ast->caseToken);
|
out("case ", ast->caseToken);
|
||||||
accept(ast->expression);
|
accept(ast->expression);
|
||||||
out(ast->colonToken);
|
out(ast->colonToken);
|
||||||
|
if (ast->statements)
|
||||||
lnAcceptIndented(ast->statements);
|
lnAcceptIndented(ast->statements);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user