diff --git a/src/plugins/qmljseditor/qmljsindenter.cpp b/src/plugins/qmljseditor/qmljsindenter.cpp index 8dddb7747f5..755d993bacd 100644 --- a/src/plugins/qmljseditor/qmljsindenter.cpp +++ b/src/plugins/qmljseditor/qmljsindenter.cpp @@ -53,7 +53,8 @@ Indenter::~Indenter() bool Indenter::isElectricCharacter(const QChar &ch) const { - if (ch == QLatin1Char('}') + if (ch == QLatin1Char('{') + || ch == QLatin1Char('}') || ch == QLatin1Char(']') || ch == QLatin1Char(':')) return true;