forked from qt-creator/qt-creator
Insert semicolon when matching enum declarations.
Task-number: QTCREATORBUG-282
This commit is contained in:
@@ -238,7 +238,7 @@ QString MatchingText::insertParagraphSeparator(const QTextCursor &tc) const
|
|||||||
if (current.is(T_EOF_SYMBOL))
|
if (current.is(T_EOF_SYMBOL))
|
||||||
break;
|
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.
|
// found a class key.
|
||||||
QString str = QLatin1String("};");
|
QString str = QLatin1String("};");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user