Insert semicolon when matching enum declarations.

Task-number: QTCREATORBUG-282
This commit is contained in:
Roberto Raggi
2009-11-16 18:15:33 +01:00
parent 0b641d38d5
commit fa2eca8262

View File

@@ -238,7 +238,7 @@ QString MatchingText::insertParagraphSeparator(const QTextCursor &tc) const
if (current.is(T_EOF_SYMBOL))
break;
else if (current.is(T_CLASS) || current.is(T_STRUCT) || current.is(T_UNION)) {
else if (current.is(T_CLASS) || current.is(T_STRUCT) || current.is(T_UNION) || current.is(T_ENUM)) {
// found a class key.
QString str = QLatin1String("};");