add ':' to electric keys for C++ indenting, and check for electric keys anywhere on line, not just at beginning

This commit is contained in:
Joel Nordell
2009-05-18 14:38:22 -05:00
parent bb6f56f553
commit 4c07de50b2
2 changed files with 3 additions and 6 deletions

View File

@@ -842,7 +842,8 @@ bool CPPEditor::isElectricCharacter(const QChar &ch) const
{
if (ch == QLatin1Char('{') ||
ch == QLatin1Char('}') ||
ch == QLatin1Char('#')) {
ch == QLatin1Char('#') ||
ch == QLatin1Char(':')) {
return true;
}
return false;