https://bugs.kde.org/show_bug.cgi?id=517522

            Bug ID: 517522
           Summary: incorrect coloring of matching brackets
    Classification: Applications
           Product: kdevelop
      Version First 5.12.230805
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: All editors
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 190636
  --> https://bugs.kde.org/attachment.cgi?id=190636&action=edit
Screenshot showing incorrect coloring of matching brackets

SUMMARY
Incorrect coloring of matching brackets in the editor.

STEPS TO REPRODUCE
1.  Open this C++ code in the editor:
//---------------------------------------
#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;

int main()
{
    vector<double> temps;                    // temperatures
    cout << "Provide temperatures.\n";
    for(double temp; cin>>temp;)         // read into temp
        temps.push_back(temp);         // put temp into vector

    // compute mean temperature:
    double sum = 0;
    for (double x : temps)
        sum += x;
    cout << "Average temperature: " << sum/temps.size() << '\n';

    // compute median temperature:
    ranges::sort(temps);           // <= pair of () brackets in different
colors here
    cout << "Median temperature: " << temps[temps.size()/2] << '\n';   // <=
pair of [] brackets in different colors here
    int roz = temps.size();
}
//-------------------------------------------------------------
OBSERVED RESULT
Matching brackets with different colors in lines with comments: // <= pair of
[] brackets in different colors

EXPECTED RESULT
Matching brackets with the same color.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I spotted this bug in vesion 5.12.230805 (23.08.5), but it is still present in
the newest - 6.4.251203 (25.12.3)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to