diff --git a/RedPandaIDE/qsynedit/highlighter/cpp.cpp b/RedPandaIDE/qsynedit/highlighter/cpp.cpp index 47c82b01..74c0343b 100644 --- a/RedPandaIDE/qsynedit/highlighter/cpp.cpp +++ b/RedPandaIDE/qsynedit/highlighter/cpp.cpp @@ -369,9 +369,9 @@ void SynEditCppHighlighter::braceCloseProc() mRange.braceLevel -= 1; if (mRange.leftBraces>0) { - mRange.rightBraces++ ; - } else { mRange.leftBraces--; + } else { + mRange.rightBraces++ ; } }