forked from qt-creator/qt-creator
QmlJS indenter: Add '{' as an electric character.
Task-number: QTCREATORBUG-3405 Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -53,7 +53,8 @@ Indenter::~Indenter()
|
|||||||
|
|
||||||
bool Indenter::isElectricCharacter(const QChar &ch) const
|
bool Indenter::isElectricCharacter(const QChar &ch) const
|
||||||
{
|
{
|
||||||
if (ch == QLatin1Char('}')
|
if (ch == QLatin1Char('{')
|
||||||
|
|| ch == QLatin1Char('}')
|
||||||
|| ch == QLatin1Char(']')
|
|| ch == QLatin1Char(']')
|
||||||
|| ch == QLatin1Char(':'))
|
|| ch == QLatin1Char(':'))
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user