QmlJS indenter: Add '{' as an electric character.

Task-number: QTCREATORBUG-3405
Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2011-01-03 15:43:07 +01:00
parent a7e5f80d70
commit 7c5d89ae8a

View File

@@ -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;