Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-41 Text highlighting improvements
  3. QTCREATORBUG-537

Wrong color highlighting if ':' follows first word on line

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • P3: Somewhat important
    • None
    • C/C++/Obj-C++ Support
    • None
    • Demonstrated on WinXP Home, Win XP Pro and Ubuntu Karmic Koala

    Description

      C++ labels are color-coded by the Qt Creator editor. If a variable name is the first word on a line and is followed by (with or without space) ':', then this variable name is erroneously also color coded as label. As example please paste the following text in a *.cpp file and open in Qt Creator.

         int variableA(1);
         int variableB(2);
         bool variableCondition(true);
      this_is_really_a_label:
         int variableC = variableCondition ? 
                         variableA : variableB;
      

      The word variableA on the last line is color coded like 'this_is_really_a_label'.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            al_ Andreas Christ
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes