forked from qt-creator/qt-creator
Added semicolon after } when creating unnamed enumeration
Task-number: QTCREATORBUG-643 Merge-request: 109 Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
a6ca348636
commit
32199de9d9
@@ -271,7 +271,7 @@ QString MatchingText::insertParagraphSeparator(const QTextCursor &tc) const
|
||||
// anonymous namespace
|
||||
return QLatin1String("}");
|
||||
|
||||
} else if (token.is(T_CLASS) || token.is(T_STRUCT) || token.is(T_UNION)) {
|
||||
} else if (token.is(T_CLASS) || token.is(T_STRUCT) || token.is(T_UNION) || token.is(T_ENUM)) {
|
||||
if (tk[index - 2].is(T_TYPEDEF)) {
|
||||
// recognized:
|
||||
// typedef struct {
|
||||
|
Reference in New Issue
Block a user